summaryrefslogtreecommitdiffstats
path: root/src/sqlite3gen.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2017-04-02 12:51:46 (GMT)
committerGitHub <noreply@github.com>2017-04-02 12:51:46 (GMT)
commit71d56e2cde40d74317691165c86b1d06293f2f23 (patch)
tree23d4edf1938351dee0b1cb7e7bff06d59c9905c8 /src/sqlite3gen.cpp
parent898b6044194d5967099adfadab454cd09a4f360e (diff)
parent5711b54b4813a2f4ce3b858e496ac846cbda69e5 (diff)
downloadDoxygen-71d56e2cde40d74317691165c86b1d06293f2f23.zip
Doxygen-71d56e2cde40d74317691165c86b1d06293f2f23.tar.gz
Doxygen-71d56e2cde40d74317691165c86b1d06293f2f23.tar.bz2
Merge pull request #560 from luzpaz/typos
typos
Diffstat (limited to 'src/sqlite3gen.cpp')
-rw-r--r--src/sqlite3gen.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sqlite3gen.cpp b/src/sqlite3gen.cpp
index 6bc8789..8996014 100644
--- a/src/sqlite3gen.cpp
+++ b/src/sqlite3gen.cpp
@@ -491,8 +491,8 @@ static int step(sqlite3 *db, SqlStmt &s,bool getRowId=FALSE, bool select=FALSE)
sqlite3_clear_bindings(s.stmt);
return -1;
}
- if (getRowId && select) rowid = sqlite3_column_int(s.stmt, 0); // works on selects, doesnt on inserts
- if (getRowId && !select) rowid = sqlite3_last_insert_rowid(db); //works on inserts, doesnt on selects
+ if (getRowId && select) rowid = sqlite3_column_int(s.stmt, 0); // works on selects, doesn't on inserts
+ if (getRowId && !select) rowid = sqlite3_last_insert_rowid(db); //works on inserts, doesn't on selects
sqlite3_reset(s.stmt);
sqlite3_clear_bindings(s.stmt); // XXX When should this really be called
return rowid;