From b67dd43bbdca2563ed29e84d37efc91b99f9a8bf Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Thu, 5 Jan 2017 21:02:54 +0000 Subject: Fix bug where prepared statement cache wasn't cleared on connection reset leading to random failure due to prepapred statements not existing --- libpqpp/pq-connection.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libpqpp/pq-connection.h') 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); -- cgit v1.2.3