summaryrefslogtreecommitdiff
path: root/libpqpp/connection.cpp
diff options
context:
space:
mode:
authorrandomdan <randomdan@localhost>2011-02-14 01:14:00 +0000
committerrandomdan <randomdan@localhost>2011-02-14 01:14:00 +0000
commit85d151abd0f607178d4fdec95e61fec30769bfa3 (patch)
treee5ca97cfbbdb236844e53bb2c40aa0131658ef31 /libpqpp/connection.cpp
parentFixed handling of ?s in string literals (diff)
downloadlibdbpp-postgresql-85d151abd0f607178d4fdec95e61fec30769bfa3.tar.bz2
libdbpp-postgresql-85d151abd0f607178d4fdec95e61fec30769bfa3.tar.xz
libdbpp-postgresql-85d151abd0f607178d4fdec95e61fec30769bfa3.zip
Fixes to compile with all gcc warnings as errors
Fixes to keep uuid impl choice entirely within uuid class Fix to collect all text in xslRows Error in unhandled compares Add support for no change check in PQ connector Move dumptask in p2console, soon to be removed Fix variable creation code to set type correctly
Diffstat (limited to 'libpqpp/connection.cpp')
-rw-r--r--libpqpp/connection.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/libpqpp/connection.cpp b/libpqpp/connection.cpp
index 1805ff7..ef8e72d 100644
--- a/libpqpp/connection.cpp
+++ b/libpqpp/connection.cpp
@@ -4,7 +4,7 @@
#include "modifycommand.h"
static void
-noNoticeProcessor(void * arg, const char * message)
+noNoticeProcessor(void *, const char *)
{
}
@@ -28,7 +28,7 @@ int
PQ::Connection::beginTx() const
{
if (txDepth == 0) {
- checkResultFree(PQexec(conn, "BEGIN"), PGRES_COMMAND_OK, __PRETTY_FUNCTION__);
+ checkResultFree(PQexec(conn, "BEGIN"), PGRES_COMMAND_OK);
}
return ++txDepth;
}
@@ -37,7 +37,7 @@ int
PQ::Connection::commitTx() const
{
if (--txDepth == 0) {
- checkResultFree(PQexec(conn, "COMMIT"), PGRES_COMMAND_OK, __PRETTY_FUNCTION__);
+ checkResultFree(PQexec(conn, "COMMIT"), PGRES_COMMAND_OK);
}
return txDepth;
}
@@ -46,7 +46,7 @@ int
PQ::Connection::rollbackTx() const
{
if (--txDepth == 0) {
- checkResultFree(PQexec(conn, "ROLLBACK"), PGRES_COMMAND_OK, __PRETTY_FUNCTION__);
+ checkResultFree(PQexec(conn, "ROLLBACK"), PGRES_COMMAND_OK);
}
return txDepth;
}
@@ -94,7 +94,7 @@ PQ::Connection::checkResultInt(PGresult * res, int expected)
}
void
-PQ::Connection::checkResult(PGresult * res, int expected, const char * doing) const
+PQ::Connection::checkResult(PGresult * res, int expected) const
{
if (!checkResultInt(res, expected)) {
PQclear(res);
@@ -103,7 +103,7 @@ PQ::Connection::checkResult(PGresult * res, int expected, const char * doing) co
}
void
-PQ::Connection::checkResultFree(PGresult * res, int expected, const char * doing) const
+PQ::Connection::checkResultFree(PGresult * res, int expected) const
{
if (!checkResultInt(res, expected)) {
PQclear(res);