summaryrefslogtreecommitdiff
path: root/libpqpp/pq-command.h
diff options
context:
space:
mode:
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;