From 2a8c566bee4f12f48a441fd37f64102328eac6d0 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Tue, 29 Dec 2015 05:16:51 +0000 Subject: Improve and centralise transaction handling logic --- libpqpp/pq-command.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libpqpp/pq-command.h') diff --git a/libpqpp/pq-command.h b/libpqpp/pq-command.h index e0f1e61..ea32f61 100644 --- a/libpqpp/pq-command.h +++ b/libpqpp/pq-command.h @@ -9,7 +9,7 @@ namespace PQ { class Connection; class Command : public virtual DB::Command { public: - Command(const Connection *, const std::string & sql, unsigned int no); + Command(Connection *, const std::string & sql, unsigned int no); virtual ~Command() = 0; void bindParamI(unsigned int, int) override; @@ -33,7 +33,7 @@ namespace PQ { protected: static void prepareSql(std::string & psql, const std::string & sql); const std::string stmntName; - const Connection * c; + Connection * const c; void paramsAtLeast(unsigned int); std::vector values; -- cgit v1.2.3