diff options
author | randomdan <randomdan@localhost> | 2011-03-30 18:56:11 +0000 |
---|---|---|
committer | randomdan <randomdan@localhost> | 2011-03-30 18:56:11 +0000 |
commit | eddbb27048c05d3a719acb71534b95d70d85706c (patch) | |
tree | 35409299bfd593da3cd5c2d2a3eeb97af9a27c3d /libpqpp/connection.h | |
parent | Finally convert ytfs to use boost stuff (untested, but it does build) (diff) | |
download | libdbpp-postgresql-eddbb27048c05d3a719acb71534b95d70d85706c.tar.bz2 libdbpp-postgresql-eddbb27048c05d3a719acb71534b95d70d85706c.tar.xz libdbpp-postgresql-eddbb27048c05d3a719acb71534b95d70d85706c.zip |
Allow PQ_TUPLES_OK as an ok reply for modify commands (for cases when a function was called using SELECT func(...))
Diffstat (limited to 'libpqpp/connection.h')
-rw-r--r-- | libpqpp/connection.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libpqpp/connection.h b/libpqpp/connection.h index b46151d..d4cf60a 100644 --- a/libpqpp/connection.h +++ b/libpqpp/connection.h @@ -22,13 +22,13 @@ namespace PQ { DB::SelectCommand * newSelectCommand(const std::string & sql) const; DB::ModifyCommand * newModifyCommand(const std::string & sql) const; - PGresult * checkResult(PGresult * res, int expected) const; - void checkResultFree(PGresult * res, int expected) const; + PGresult * checkResult(PGresult * res, int expected, int alternative = -1) const; + void checkResultFree(PGresult * res, int expected, int alternative = -1) const; PGconn * conn; private: - static bool checkResultInt(PGresult * res, int expected); + static bool checkResultInt(PGresult * res, int expected, int alternative); mutable unsigned int txDepth; mutable unsigned int pstmntNo; |