diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-09-05 08:42:41 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-09-05 08:42:41 +0000 |
commit | d27af79ee06388dc6d1ab31d95348a38cdfbeb91 (patch) | |
tree | e85d51e0371e11254f1d727658af7a5da2748d88 /src/modules/extra/m_mysql.cpp | |
parent | bc9aa036ce738f931f26d195adc7d49b04868b6e (diff) |
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
Diffstat (limited to 'src/modules/extra/m_mysql.cpp')
-rw-r--r-- | src/modules/extra/m_mysql.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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); |