diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2017-01-04 02:00:04 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2017-01-04 02:00:04 +0000 |
commit | f9fc8240229cd1f059bfc56eb027aec11fec6b4c (patch) | |
tree | c276986ac80870167d594d5d8229824317d38582 /libpqpp/pq-command.h | |
parent | Tidy clearing of PGresults (diff) | |
download | libdbpp-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.h | 2 |
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; |