summaryrefslogtreecommitdiff
path: root/modules/extra/m_mysql.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2012-06-01 04:43:26 -0400
committerAdam <Adam@anope.org>2012-06-01 04:43:26 -0400
commit437944d41689b0ab090bada7fba9791086b7e1fe (patch)
tree1dc2c3c20f0f39256fe6e0226d3412625cdf05df /modules/extra/m_mysql.cpp
parent1e49e9b9dc6ccded06e2855b99223a13d69200b7 (diff)
parentdb37b1c6345dff1415fb144cc21d7c782acb1296 (diff)
Merge branch '1.9' of anope.git.sf.net:/gitroot/anope/anope into 1.9
Diffstat (limited to 'modules/extra/m_mysql.cpp')
-rw-r--r--modules/extra/m_mysql.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/extra/m_mysql.cpp b/modules/extra/m_mysql.cpp
index fef040336..1e5ba79cf 100644
--- a/modules/extra/m_mysql.cpp
+++ b/modules/extra/m_mysql.cpp
@@ -440,7 +440,7 @@ void MySQLService::Connect()
const unsigned int timeout = 1;
mysql_options(this->sql, MYSQL_OPT_CONNECT_TIMEOUT, reinterpret_cast<const char *>(&timeout));
- bool connect = mysql_real_connect(this->sql, this->server.c_str(), this->user.c_str(), this->password.c_str(), this->database.c_str(), this->port, NULL, 0);
+ bool connect = mysql_real_connect(this->sql, this->server.c_str(), this->user.c_str(), this->password.c_str(), this->database.c_str(), this->port, NULL, CLIENT_MULTI_RESULTS);
if (!connect)
throw SQLException("Unable to connect to MySQL service " + this->name + ": " + mysql_error(this->sql));