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
commit74fcbf827294bac907fffe57382e34359893f20f (patch)
treea20e7f29872515ca3cbba3f66c656aa119aeb1c9 /libpqpp/pq-command.h
parentTidy clearing of PGresults (diff)
downloadlibdbpp-postgresql-74fcbf827294bac907fffe57382e34359893f20f.tar.bz2
libdbpp-postgresql-74fcbf827294bac907fffe57382e34359893f20f.tar.xz
libdbpp-postgresql-74fcbf827294bac907fffe57382e34359893f20f.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;