diff options
author | DukePyrolator <DukePyrolator@anope.org> | 2012-06-01 07:37:34 +0200 |
---|---|---|
committer | DukePyrolator <DukePyrolator@anope.org> | 2012-06-01 07:37:34 +0200 |
commit | db37b1c6345dff1415fb144cc21d7c782acb1296 (patch) | |
tree | 7c327b771d3855de38bc43da2aa36576ee46d668 /modules/extra/m_mysql.cpp | |
parent | 38d5f20deba313355943883b7b539a82f7a701ee (diff) |
updated chanstats
Diffstat (limited to 'modules/extra/m_mysql.cpp')
-rw-r--r-- | modules/extra/m_mysql.cpp | 2 |
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)); |