diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2011-03-28 09:53:10 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2011-03-28 09:53:10 +0200 |
commit | 2fe2c22fa340e4854a69a1c17d94f8e58ba68ad4 (patch) | |
tree | f251569c9ccc5d56adb57146e444edea94905fe7 | |
parent | 92349548ad2c2381d66ea2fc501b5466fed9789c (diff) |
Fix bugs in active/uncached list maintenance
-rw-r--r-- | odb/sqlite/statement.hxx | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/odb/sqlite/statement.hxx b/odb/sqlite/statement.hxx index 2a629fe..5ddb56b 100644 --- a/odb/sqlite/statement.hxx +++ b/odb/sqlite/statement.hxx @@ -161,6 +161,9 @@ namespace odb { next_ = conn_.statements_; conn_.statements_ = this; + + if (next_ != 0) + next_->prev_ = this; } } @@ -173,9 +176,12 @@ namespace odb else { prev_->next_ = next_; - prev_ = 0; } + if (next_ != 0) + next_->prev_ = prev_; + + prev_ = 0; next_ = this; } } |