From d94948b8bccfd8748245726487d54c41bb199baf Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 12 Oct 2012 17:24:44 +0200 Subject: Completion of prepared query support --- odb/sqlite/statement.hxx | 26 ++++---------------------- 1 file changed, 4 insertions(+), 22 deletions(-) (limited to 'odb/sqlite/statement.hxx') 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 stmt_; bool active_; - bool cached_; private: void -- cgit v1.1