summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/extra/m_mysql.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/modules/extra/m_mysql.cpp b/src/modules/extra/m_mysql.cpp
index 486b7e2f4..4615b933b 100644
--- a/src/modules/extra/m_mysql.cpp
+++ b/src/modules/extra/m_mysql.cpp
@@ -180,6 +180,7 @@ class MySQLresult : public SQLresult
{
/* A number of affected rows from from mysql_affected_rows.
*/
+ log(DEBUG,"Created new MySQLresult of non-error type");
fieldlists.clear();
rows = affected_rows;
fieldlists.resize(rows);
@@ -216,9 +217,12 @@ class MySQLresult : public SQLresult
log(DEBUG, "Created new MySQL result; %d rows, %d columns", rows, cols);
}
- MySQLresult(Module* self, Module* to, SQLerror e) : SQLresult(self, to), currentrow(0), rows(0), cols(0)
+ MySQLresult(Module* self, Module* to, SQLerror e) : SQLresult(self, to), currentrow(0)
{
+ rows = 0;
+ cols = 0;
error = e;
+ log(DEBUG,"Created new MySQLresult of error type");
}
~MySQLresult()