summaryrefslogtreecommitdiff
path: root/libpqpp/pq-modifycommand.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2016-02-28 17:22:24 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2016-02-28 17:22:24 +0000
commit9228b13ad8b8a42277af00bbcd645aa65e0c9f56 (patch)
tree1800183cd6053d9c2703934c2a8a978ed33aa260 /libpqpp/pq-modifycommand.h
parentPrepare statement upfront during construction (diff)
downloadlibdbpp-postgresql-9228b13ad8b8a42277af00bbcd645aa65e0c9f56.tar.bz2
libdbpp-postgresql-9228b13ad8b8a42277af00bbcd645aa65e0c9f56.tar.xz
libdbpp-postgresql-9228b13ad8b8a42277af00bbcd645aa65e0c9f56.zip
Actually, don't prepare statement upfront during construction as it might not be valid (e.g. uncreated temp tables)libdbpp-postgresql-1.0.3
Diffstat (limited to 'libpqpp/pq-modifycommand.h')
-rw-r--r--libpqpp/pq-modifycommand.h4
1 files changed, 2 insertions, 2 deletions
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;
};
}