summaryrefslogtreecommitdiff
path: root/modules/core/db_mysql_live.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2011-05-29 19:05:28 -0400
committerAdam <Adam@anope.org>2011-05-29 19:05:28 -0400
commit60548aa00beee50b20bc0742d1dafc3a69c6fb20 (patch)
tree84da5170e9ece9143d0020750bfe1ff975b5ee8b /modules/core/db_mysql_live.cpp
parenta45d1555d3f4751f4d42576a93640bc251c1dfe1 (diff)
Fixed ns_update and db_mysql_live sql queries
Diffstat (limited to 'modules/core/db_mysql_live.cpp')
-rw-r--r--modules/core/db_mysql_live.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/modules/core/db_mysql_live.cpp b/modules/core/db_mysql_live.cpp
index 1073f1b99..a9abd2868 100644
--- a/modules/core/db_mysql_live.cpp
+++ b/modules/core/db_mysql_live.cpp
@@ -179,8 +179,8 @@ class MySQLLiveModule : public Module
try
{
- SQLQuery query("SELECT * FROM `anope_cs_info` WHERE `name` = ?");
- query.setValue(1, chname);
+ SQLQuery query("SELECT * FROM `anope_cs_info` WHERE `name` = @name");
+ query.setValue("name", chname);
CommandMutex *current_command = this->CurrentCommand();
if (current_command)
{
@@ -216,8 +216,8 @@ class MySQLLiveModule : public Module
try
{
- SQLQuery query("SELECT * FROM `anope_ns_alias` WHERE `nick` = ?");
- query.setValue(1, nick);
+ SQLQuery query("SELECT * FROM `anope_ns_alias` WHERE `nick` = @nick");
+ query.setValue("nick", nick);
CommandMutex *current_command = this->CurrentCommand();
if (current_command)
{
@@ -253,8 +253,8 @@ class MySQLLiveModule : public Module
try
{
- SQLQuery query("SELECT * FROM `anope_ns_core` WHERE `display` = ?");
- query.setValue(1, nick);
+ SQLQuery query("SELECT * FROM `anope_ns_core` WHERE `display` = @display");
+ query.setValue("display", nick);
CommandMutex *current_command = this->CurrentCommand();
if (current_command)
{