From 2fe2c22fa340e4854a69a1c17d94f8e58ba68ad4 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 28 Mar 2011 09:53:10 +0200 Subject: Fix bugs in active/uncached list maintenance --- odb/sqlite/statement.hxx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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; } } -- cgit v1.1