summaryrefslogtreecommitdiff
path: root/libpqpp/modifycommand.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libpqpp/modifycommand.cpp')
-rw-r--r--libpqpp/modifycommand.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpqpp/modifycommand.cpp b/libpqpp/modifycommand.cpp
index b9ece01..3eb41ec 100644
--- a/libpqpp/modifycommand.cpp
+++ b/libpqpp/modifycommand.cpp
@@ -24,7 +24,7 @@ PQ::ModifyCommand::prepare() const
char buf[4];
int p = 1;
bool inquote = false;
- 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;