summaryrefslogtreecommitdiff
path: root/libpqpp/pq-command.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2017-01-04 02:00:04 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2017-01-04 02:00:04 +0000
commitf9fc8240229cd1f059bfc56eb027aec11fec6b4c (patch)
treec276986ac80870167d594d5d8229824317d38582 /libpqpp/pq-command.h
parentTidy clearing of PGresults (diff)
downloadlibdbpp-postgresql-f9fc8240229cd1f059bfc56eb027aec11fec6b4c.tar.bz2
libdbpp-postgresql-f9fc8240229cd1f059bfc56eb027aec11fec6b4c.tar.xz
libdbpp-postgresql-f9fc8240229cd1f059bfc56eb027aec11fec6b4c.zip
C++ify the SQL preparer and skip it if no variables are being bound
Diffstat (limited to 'libpqpp/pq-command.h')
-rw-r--r--libpqpp/pq-command.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpqpp/pq-command.h b/libpqpp/pq-command.h
index 8af2d07..2c0bf14 100644
--- a/libpqpp/pq-command.h
+++ b/libpqpp/pq-command.h
@@ -31,7 +31,7 @@ namespace PQ {
void bindNull(unsigned int) override;
protected:
- static void prepareSql(std::string & psql, const std::string & sql);
+ void prepareSql(std::stringstream & psql, const std::string & sql) const;
const std::string stmntName;
Connection * const c;