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_pgsql.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/modules/extra/m_pgsql.cpp') diff --git a/src/modules/extra/m_pgsql.cpp b/src/modules/extra/m_pgsql.cpp index 6b8638b7b..455f9b7a2 100644 --- a/src/modules/extra/m_pgsql.cpp +++ b/src/modules/extra/m_pgsql.cpp @@ -468,7 +468,7 @@ class SQLConn : public EventHandler case PGRES_EMPTY_QUERY: case PGRES_BAD_RESPONSE: case PGRES_FATAL_ERROR: - reply.error.Id(QREPLY_FAIL); + reply.error.Id(SQL_QREPLY_FAIL); reply.error.Str(PQresultErrorMessage(result)); default:; /* No action, other values are not errors */ @@ -656,11 +656,11 @@ class SQLConn : public EventHandler else { delete[] query; - return SQLerror(QSEND_FAIL, PQerrorMessage(sql)); + return SQLerror(SQL_QSEND_FAIL, PQerrorMessage(sql)); } } } - return SQLerror(BAD_CONN, "Can't query until connection is complete"); + return SQLerror(SQL_BAD_CONN, "Can't query until connection is complete"); } SQLerror Query(const SQLrequest &req) @@ -919,11 +919,11 @@ class ModulePgSQL : public Module req->id = NewID(); req->error = iter->second->Query(*req); - return (req->error.Id() == NO_ERROR) ? sqlsuccess : NULL; + return (req->error.Id() == SQL_NO_ERROR) ? sqlsuccess : NULL; } else { - req->error.Id(BAD_DBID); + req->error.Id(SQL_BAD_DBID); return NULL; } } -- cgit v1.3.1-10-gc9f91