summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-07-22 00:27:35 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-07-22 00:27:35 +0000
commit9973b5897718436ed9cd2cd8dc3417e36c15b37e (patch)
tree1f99b632e26749084d0225fdf39fc2a5fd9ab6a8
parentec787f412eddfa97e73c17a1ecad0b9e1b3efc06 (diff)
Error checking and debug
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4486 e03df62e-2008-0410-955e-edbf42e46eb7
-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()