aboutsummaryrefslogtreecommitdiff
path: root/odb/pgsql/database.ixx
diff options
context:
space:
mode:
Diffstat (limited to 'odb/pgsql/database.ixx')
-rw-r--r--odb/pgsql/database.ixx2
1 files changed, 1 insertions, 1 deletions
diff --git a/odb/pgsql/database.ixx b/odb/pgsql/database.ixx
index 3e3d63e..ecc94f9 100644
--- a/odb/pgsql/database.ixx
+++ b/odb/pgsql/database.ixx
@@ -594,7 +594,7 @@ namespace odb
{
// Throws if not in transaction.
//
- pgsql::connection& c (transaction::current ().connection ());
+ pgsql::connection& c (transaction::current ().connection (*this));
return c.prepare_query<T> (n, q);
}