From 9973b5897718436ed9cd2cd8dc3417e36c15b37e Mon Sep 17 00:00:00 2001 From: brain Date: Sat, 22 Jul 2006 00:27:35 +0000 Subject: Error checking and debug git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4486 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/extra/m_mysql.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') 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() -- cgit v1.2.3