diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2017-04-02 12:51:46 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-02 12:51:46 (GMT) |
commit | 71d56e2cde40d74317691165c86b1d06293f2f23 (patch) | |
tree | 23d4edf1938351dee0b1cb7e7bff06d59c9905c8 /src/sqlite3gen.cpp | |
parent | 898b6044194d5967099adfadab454cd09a4f360e (diff) | |
parent | 5711b54b4813a2f4ce3b858e496ac846cbda69e5 (diff) | |
download | Doxygen-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.cpp | 4 |
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; |