summaryrefslogtreecommitdiff
path: root/libpqpp/pq-connection.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2017-01-05 21:02:54 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2017-01-08 19:33:30 +0000
commitb67dd43bbdca2563ed29e84d37efc91b99f9a8bf (patch)
treed3041e23231691de56cc57e8ff5920d51eefe06b /libpqpp/pq-connection.h
parentAdd PQ specific command options to control page size and the use of bulk -v- ... (diff)
downloadlibdbpp-postgresql-b67dd43bbdca2563ed29e84d37efc91b99f9a8bf.tar.bz2
libdbpp-postgresql-b67dd43bbdca2563ed29e84d37efc91b99f9a8bf.tar.xz
libdbpp-postgresql-b67dd43bbdca2563ed29e84d37efc91b99f9a8bf.zip
Fix bug where prepared statement cache wasn't cleared on connection reset leading to random failure due to prepapred statements not existing
Diffstat (limited to 'libpqpp/pq-connection.h')
-rw-r--r--libpqpp/pq-connection.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpqpp/pq-connection.h b/libpqpp/pq-connection.h
index d5cbde6..1659c13 100644
--- a/libpqpp/pq-connection.h
+++ b/libpqpp/pq-connection.h
@@ -43,7 +43,7 @@ namespace PQ {
void checkResultFree(PGresult * res, int expected, int alternative = -1) const;
PGconn * conn;
- PreparedStatements preparedStatements;
+ mutable PreparedStatements preparedStatements;
private:
static bool checkResultInt(PGresult * res, int expected, int alternative);