summaryrefslogtreecommitdiff
path: root/src/modules/extra/m_pgsql.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-09-05 08:42:41 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-09-05 08:42:41 +0000
commitd27af79ee06388dc6d1ab31d95348a38cdfbeb91 (patch)
treee85d51e0371e11254f1d727658af7a5da2748d88 /src/modules/extra/m_pgsql.cpp
parentbc9aa036ce738f931f26d195adc7d49b04868b6e (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_pgsql.cpp')
-rw-r--r--src/modules/extra/m_pgsql.cpp10
1 files changed, 5 insertions, 5 deletions
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;
}
}