From d4be234991f2a2e6abd8b2c0d585eb4ae6216979 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 29 Apr 2021 18:36:16 +0200 Subject: Add prepared_query_impl::verify_connection() --- odb/prepared-query.cxx | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'odb/prepared-query.cxx') diff --git a/odb/prepared-query.cxx b/odb/prepared-query.cxx index 65779aa..70bcaa1 100644 --- a/odb/prepared-query.cxx +++ b/odb/prepared-query.cxx @@ -2,6 +2,7 @@ // license : GNU GPL v2; see accompanying LICENSE file #include +#include #include namespace odb @@ -26,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 () { -- cgit v1.1