summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2018-02-17 17:12:26 +0000
committerPeter Powell <petpow@saberuk.com>2018-02-17 17:12:26 +0000
commitd2efdbf6bb91229d043303b1694fefae79ea6fe7 (patch)
treebc256da2d24eaf978af4a04cd45f79045c0b745d /src/modules
parent36e6dc7bc8c21db2f8fa63c96b3e3aa23886e056 (diff)
Fix building on Windows (mostly).
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/extra/m_mysql.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/extra/m_mysql.cpp b/src/modules/extra/m_mysql.cpp
index a16a293d7..4ee6de527 100644
--- a/src/modules/extra/m_mysql.cpp
+++ b/src/modules/extra/m_mysql.cpp
@@ -145,7 +145,7 @@ class MySQLresult : public SQL::Result
std::vector<std::string> colnames;
std::vector<SQL::Row> fieldlists;
- MySQLresult(MYSQL_RES* res, int affected_rows) : err(SQL::NO_ERROR), currentrow(0), rows(0)
+ MySQLresult(MYSQL_RES* res, int affected_rows) : err(SQL::SUCCESS), currentrow(0), rows(0)
{
if (affected_rows >= 1)
{
@@ -541,7 +541,7 @@ void DispatcherThread::OnNotify()
for(ResultQueue::iterator i = Parent->rq.begin(); i != Parent->rq.end(); i++)
{
MySQLresult* res = i->r;
- if (res->err.code == SQL::NO_ERROR)
+ if (res->err.code == SQL::SUCCESS)
i->q->OnResult(*res);
else
i->q->OnError(res->err);