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
commitfd9ad6023012494356829e9b7642ef4ec07f30a3 (patch)
tree28e8f424645dbd6e39863c5dd9531509740ad913 /libpqpp/pq-command.h
parentTidy up (diff)
downloadlibdbpp-postgresql-fd9ad6023012494356829e9b7642ef4ec07f30a3.tar.bz2
libdbpp-postgresql-fd9ad6023012494356829e9b7642ef4ec07f30a3.tar.xz
libdbpp-postgresql-fd9ad6023012494356829e9b7642ef4ec07f30a3.zip
Improve and centralise transaction handling logic
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;