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 | 74fcbf827294bac907fffe57382e34359893f20f (patch) | |
tree | a20e7f29872515ca3cbba3f66c656aa119aeb1c9 /libpqpp/pq-command.h | |
parent | Tidy clearing of PGresults (diff) | |
download | libdbpp-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.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; |