summaryrefslogtreecommitdiff
path: root/libpqpp/pq-command.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2015-12-29 05:16:51 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2015-12-29 06:00:08 +0000
commit2a8c566bee4f12f48a441fd37f64102328eac6d0 (patch)
tree68d232be8d4a10877ac56268a2e309f39fe4deef /libpqpp/pq-command.h
parentTidy up (diff)
downloadlibdbpp-postgresql-2a8c566bee4f12f48a441fd37f64102328eac6d0.tar.bz2
libdbpp-postgresql-2a8c566bee4f12f48a441fd37f64102328eac6d0.tar.xz
libdbpp-postgresql-2a8c566bee4f12f48a441fd37f64102328eac6d0.zip
Improve and centralise transaction handling logiclibdbpp-postgresql-1.0.0
Diffstat (limited to 'libpqpp/pq-command.h')
-rw-r--r--libpqpp/pq-command.h4
1 files changed, 2 insertions, 2 deletions
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<char *> values;