From bcf5fce175953bec0fd2725968828850a74d8539 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 7 Nov 2011 15:00:06 +0200 Subject: Add support for SQL statement tracing --- odb/transaction.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'odb/transaction.cxx') diff --git a/odb/transaction.cxx b/odb/transaction.cxx index 70abd0c..b96a1bf 100644 --- a/odb/transaction.cxx +++ b/odb/transaction.cxx @@ -3,8 +3,8 @@ // copyright : Copyright (c) 2009-2011 Code Synthesis Tools CC // license : GNU GPL v2; see accompanying LICENSE file -#include #include +#include #include @@ -85,6 +85,7 @@ namespace odb throw transaction_already_finalized (); finalized_ = true; + impl_->connection ().transaction_tracer_ = 0; if (tls_get (current_transaction) == this) { @@ -102,6 +103,7 @@ namespace odb throw transaction_already_finalized (); finalized_ = true; + impl_->connection ().transaction_tracer_ = 0; if (tls_get (current_transaction) == this) { -- cgit v1.1