diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2021-04-30 12:06:15 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2021-04-30 12:08:30 +0200 |
commit | c6019273a7564be9ed772d45aa95e09aaff37a23 (patch) | |
tree | 501c84ed459866611032a705052aa57045a67c5f /odb/pgsql/database.ixx | |
parent | 38e203158a865d08070a4a72dcc1fee2cdacb952 (diff) |
Add transaction::connection(database&) overload
Diffstat (limited to 'odb/pgsql/database.ixx')
-rw-r--r-- | odb/pgsql/database.ixx | 2 |
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); } |