From 87006ad34dd349a7dcb5eee93eab4be214d2e875 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 28 Feb 2016 17:22:24 +0000 Subject: Actually, don't prepare statement upfront during construction as it might not be valid (e.g. uncreated temp tables) --- libpqpp/pq-modifycommand.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libpqpp/pq-modifycommand.h') diff --git a/libpqpp/pq-modifycommand.h b/libpqpp/pq-modifycommand.h index ed8b622..79593a1 100644 --- a/libpqpp/pq-modifycommand.h +++ b/libpqpp/pq-modifycommand.h @@ -14,8 +14,8 @@ namespace PQ { unsigned int execute(bool) override; private: - Connection::PreparedStatements::const_iterator prepare() const; - const std::string pstmt; + const char * prepare() const; + mutable const char * pstmt; }; } -- cgit v1.2.3