From d27af79ee06388dc6d1ab31d95348a38cdfbeb91 Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 5 Sep 2008 08:42:41 +0000 Subject: sql api and m_mysql compile fixes for windows git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10393 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/extra/m_mysql.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/modules/extra/m_mysql.cpp') diff --git a/src/modules/extra/m_mysql.cpp b/src/modules/extra/m_mysql.cpp index 8b9ad0666..7b42e344d 100644 --- a/src/modules/extra/m_mysql.cpp +++ b/src/modules/extra/m_mysql.cpp @@ -426,7 +426,7 @@ class SQLConnection : public classbase { /* XXX: See /usr/include/mysql/mysqld_error.h for a list of * possible error numbers and error messages */ - SQLerror e(QREPLY_FAIL, ConvToStr(mysql_errno(&connection)) + std::string(": ") + mysql_error(&connection)); + SQLerror e(SQL_QREPLY_FAIL, ConvToStr(mysql_errno(&connection)) + std::string(": ") + mysql_error(&connection)); MySQLresult* r = new MySQLresult(Parent, req.GetSource(), e, req.id); r->dbid = this->GetID(); r->query = req.query.q; @@ -735,7 +735,7 @@ class Notifier : public BufferedSocket }; -ModuleSQL::ModuleSQL(InspIRCd* Me) : Module::Module(Me), rehashing(false) +ModuleSQL::ModuleSQL(InspIRCd* Me) : Module(Me), rehashing(false) { ServerInstance->Modules->UseInterface("SQLutils"); @@ -806,7 +806,7 @@ const char* ModuleSQL::OnRequest(Request* request) } else { - req->error.Id(BAD_DBID); + req->error.Id(SQL_BAD_DBID); } QueueMutex->Enable(false); -- cgit v1.2.3