aboutsummaryrefslogtreecommitdiff
path: root/odb/sqlite/statement.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'odb/sqlite/statement.hxx')
-rw-r--r--odb/sqlite/statement.hxx14
1 files changed, 11 insertions, 3 deletions
diff --git a/odb/sqlite/statement.hxx b/odb/sqlite/statement.hxx
index 05fa9bd..7d7f021 100644
--- a/odb/sqlite/statement.hxx
+++ b/odb/sqlite/statement.hxx
@@ -131,15 +131,19 @@ namespace odb
}
}
- void
+ int
reset ()
{
+ int r (SQLITE_OK);
+
if (active_)
{
- sqlite3_reset (stmt_);
+ r = sqlite3_reset (stmt_);
list_remove ();
active_ = false;
}
+
+ return r;
}
protected:
@@ -148,6 +152,10 @@ namespace odb
connection_type& conn_;
auto_handle<sqlite3_stmt> stmt_;
+#if SQLITE_VERSION_NUMBER < 3005003
+ std::string text_;
+#endif
+
bool active_;
private:
@@ -160,7 +168,7 @@ namespace odb
// Doubly-linked list of active statements.
//
- private:
+ protected:
void
list_add ()
{