summaryrefslogtreecommitdiff
path: root/libpqpp/selectcommand.cpp
diff options
context:
space:
mode:
authorrandomdan <randomdan@localhost>2012-07-09 18:26:22 +0000
committerrandomdan <randomdan@localhost>2012-07-09 18:26:22 +0000
commitb356e332ac5fbda88c85553e7ec029c6fe493cf8 (patch)
treee25f043538a79c7495126280d0589f23f9c1be29 /libpqpp/selectcommand.cpp
parentA stream interface, an RDBMS bulk load interface, a decompression layer, an i... (diff)
downloadlibdbpp-postgresql-b356e332ac5fbda88c85553e7ec029c6fe493cf8.tar.bz2
libdbpp-postgresql-b356e332ac5fbda88c85553e7ec029c6fe493cf8.tar.xz
libdbpp-postgresql-b356e332ac5fbda88c85553e7ec029c6fe493cf8.zip
Fixes suggested by cppcheck
Diffstat (limited to 'libpqpp/selectcommand.cpp')
-rw-r--r--libpqpp/selectcommand.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpqpp/selectcommand.cpp b/libpqpp/selectcommand.cpp
index dc06b36..da12331 100644
--- a/libpqpp/selectcommand.cpp
+++ b/libpqpp/selectcommand.cpp
@@ -41,7 +41,7 @@ PQ::SelectCommand::execute()
psql += "DECLARE ";
psql += stmntName;
psql += " CURSOR FOR ";
- for(std::string::const_iterator i = sql.begin(); i != sql.end(); i++) {
+ for(std::string::const_iterator i = sql.begin(); i != sql.end(); ++i) {
if (*i == '?' && !inquote) {
snprintf(buf, 4, "$%d", p++);
psql += buf;