diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2011-03-24 12:21:06 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2011-03-24 12:21:06 +0200 |
commit | 01e70d9a1d49bcb126adc45f85168aa7c9cbad19 (patch) | |
tree | efc714cb8d8ceda0c2bfcead3808929e50196e58 /odb/sqlite/statement.hxx | |
parent | ea1fb7db74c17ce64403b4350d93f18d41c31f81 (diff) |
Reset statement after completion
Without the reset the statement is considered unfinished and the
database lock is help even after COMMIT.
Diffstat (limited to 'odb/sqlite/statement.hxx')
-rw-r--r-- | odb/sqlite/statement.hxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/odb/sqlite/statement.hxx b/odb/sqlite/statement.hxx index 967ff3d..fe541e5 100644 --- a/odb/sqlite/statement.hxx +++ b/odb/sqlite/statement.hxx @@ -109,15 +109,15 @@ namespace odb // Free the result set. // void - free_result () - { - } + free_result (); // More fine-grained SQLite-specific interface that splits fetch() // into next() and load(). // public: - // Return false if there is no more rows. + // Return false if there is no more rows. You should call next() + // until it returns false or, alternatively, call free_result (). + // Otherwise the statement will remain unfinished. // bool next (); |