aboutsummaryrefslogtreecommitdiff
path: root/odb/sqlite/statement-cache.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-03-24 14:02:16 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-03-24 14:02:16 +0200
commit7939f7972cf22ee9a74518978e4f7d4d77535e09 (patch)
treeb211e2f455ef717482370fc262a63a5f7bfeb77f /odb/sqlite/statement-cache.cxx
parent01e70d9a1d49bcb126adc45f85168aa7c9cbad19 (diff)
Add support for clearing connection from active and uncached statements
Diffstat (limited to 'odb/sqlite/statement-cache.cxx')
-rw-r--r--odb/sqlite/statement-cache.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/odb/sqlite/statement-cache.cxx b/odb/sqlite/statement-cache.cxx
index 66ef266..383a78e 100644
--- a/odb/sqlite/statement-cache.cxx
+++ b/odb/sqlite/statement-cache.cxx
@@ -21,6 +21,9 @@ namespace odb
commit_ (new (shared) simple_statement (conn, "COMMIT", 7)),
rollback_ (new (shared) simple_statement (conn, "ROLLBACK", 9))
{
+ rollback_->cached (true);
+ commit_->cached (true);
+ begin_->cached (true);
}
}
}