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.hxx26
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