From 0f9cfacd6cc45f78f1453a8eeb7ffa542dc5dc48 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 15 Jul 2015 18:43:03 +0200 Subject: Implement SQLite incremental BLOB/TEXT I/O --- odb/sqlite/connection.cxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'odb/sqlite/connection.cxx') diff --git a/odb/sqlite/connection.cxx b/odb/sqlite/connection.cxx index dd30f1f..c44d648 100644 --- a/odb/sqlite/connection.cxx +++ b/odb/sqlite/connection.cxx @@ -33,7 +33,7 @@ namespace odb : odb::connection (db), db_ (db), unlock_cond_ (unlock_mutex_), - statements_ (0) + active_objects_ (0) { int f (db.flags () | extra_flags); const string& n (db.name ()); @@ -86,7 +86,7 @@ namespace odb db_ (db), handle_ (handle), unlock_cond_ (unlock_mutex_), - statements_ (0) + active_objects_ (0) { init (); } @@ -184,11 +184,11 @@ namespace odb void connection:: clear () { - // The current first statement will remove itself from the list - // and make the second statement (if any) the new first. + // The current first active_object will remove itself from the list + // and make the second object (if any) the new first. // - while (statements_ != 0) - statements_->reset (); + while (active_objects_ != 0) + active_objects_->clear (); } } } -- cgit v1.1