diff options
Diffstat (limited to 'odb/prepared-query.cxx')
-rw-r--r-- | odb/prepared-query.cxx | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/odb/prepared-query.cxx b/odb/prepared-query.cxx index 22862fe..70bcaa1 100644 --- a/odb/prepared-query.cxx +++ b/odb/prepared-query.cxx @@ -1,8 +1,8 @@ // file : odb/prepared-query.cxx -// copyright : Copyright (c) 2009-2019 Code Synthesis Tools CC // license : GNU GPL v2; see accompanying LICENSE file #include <odb/connection.hxx> +#include <odb/transaction.hxx> #include <odb/prepared-query.hxx> namespace odb @@ -27,6 +27,12 @@ namespace odb next_->prev_ = this; } + bool prepared_query_impl:: + verify_connection (transaction& t) + { + return &t.connection () == &stmt->connection (); + } + void prepared_query_impl:: list_remove () { |