summaryrefslogtreecommitdiff
path: root/modules/core/db_mysql_live.cpp
diff options
context:
space:
mode:
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)
{