From 8f5dbc476f5d663ee243acd3adc45c88307e8b6b Mon Sep 17 00:00:00 2001 From: brain Date: Sat, 22 Jul 2006 10:45:35 +0000 Subject: * Change to use QREPLY_FAIL * Adjust error message so that it appears in the format: ": " git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4499 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/extra/m_mysql.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/extra/m_mysql.cpp b/src/modules/extra/m_mysql.cpp index 16eba4e1f..83bccb1dc 100644 --- a/src/modules/extra/m_mysql.cpp +++ b/src/modules/extra/m_mysql.cpp @@ -517,7 +517,7 @@ class SQLConnection : public classbase /* XXX: See /usr/include/mysql/mysqld_error.h for a list of * possible error numbers and error messages */ log(DEBUG,"SQL ERROR: %s",mysql_error(&connection)); - SQLerror e((SQLerrorNum)mysql_errno(&connection), mysql_error(&connection)); + SQLerror e(QREPLY_FAIL, ConvToStr(mysql_errno(&connection)) + std::string(": ") + mysql_error(&connection)); MySQLresult* r = new MySQLresult(SQLModule, req.GetSource(), e, req.id); r->dbid = this->GetID(); r->query = req.query.q; -- cgit v1.2.3