From 74fcbf827294bac907fffe57382e34359893f20f Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Wed, 4 Jan 2017 02:00:04 +0000 Subject: C++ify the SQL preparer and skip it if no variables are being bound --- libpqpp/pq-command.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libpqpp/pq-command.h') 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; -- cgit v1.2.3