diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2012-10-12 17:24:44 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2012-10-19 11:40:30 +0200 |
commit | d94948b8bccfd8748245726487d54c41bb199baf (patch) | |
tree | c83176902ed8cb3c49532078e0705e2fc6621555 /odb/sqlite/statement.hxx | |
parent | 1c8dc77a0feae8b33e8c06f7ba076bd26d278054 (diff) |
Completion of prepared query support
Diffstat (limited to 'odb/sqlite/statement.hxx')
-rw-r--r-- | odb/sqlite/statement.hxx | 26 |
1 files changed, 4 insertions, 22 deletions
diff --git a/odb/sqlite/statement.hxx b/odb/sqlite/statement.hxx index 3c57c74..92b9c7c 100644 --- a/odb/sqlite/statement.hxx +++ b/odb/sqlite/statement.hxx @@ -53,28 +53,11 @@ namespace odb return conn_; } - // Cached state (public part). - // public: - bool - cached () const - { - return cached_; - } - - void - cached (bool cached) - { - assert (cached); - - if (!cached_) - { - if (!active_) - list_remove (); + using odb::statement::cached; - cached_ = true; - } - } + virtual void + cached (bool); protected: statement (connection_type& conn, const std::string& text) @@ -154,11 +137,10 @@ namespace odb protected: friend class sqlite::connection; - connection_type& conn_; // Cached static type. + connection_type& conn_; auto_handle<sqlite3_stmt> stmt_; bool active_; - bool cached_; private: void |