aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--odb/sqlite/statement.hxx8
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;
}
}