diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2015-12-30 06:13:56 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2015-12-30 06:13:56 +0000 |
commit | 29c78d04e7371b21fbc3e7aef07b17ffd651e4f1 (patch) | |
tree | 79acda2405ce74189ae37d844c2d1283dc4eab91 /libpqpp/pq-selectcommand.cpp | |
parent | Improve and centralise transaction handling logic (diff) | |
download | libdbpp-postgresql-29c78d04e7371b21fbc3e7aef07b17ffd651e4f1.tar.bz2 libdbpp-postgresql-29c78d04e7371b21fbc3e7aef07b17ffd651e4f1.tar.xz libdbpp-postgresql-29c78d04e7371b21fbc3e7aef07b17ffd651e4f1.zip |
Only open select transactions when the connection doesn't already have onelibdbpp-postgresql-1.0.1
Diffstat (limited to 'libpqpp/pq-selectcommand.cpp')
-rw-r--r-- | libpqpp/pq-selectcommand.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libpqpp/pq-selectcommand.cpp b/libpqpp/pq-selectcommand.cpp index e5a6cf2..6c02fc4 100644 --- a/libpqpp/pq-selectcommand.cpp +++ b/libpqpp/pq-selectcommand.cpp @@ -64,7 +64,7 @@ void PQ::SelectCommand::execute() { if (!executed) { - if (!txOpened) { + if (!c->inTx()) { c->beginTx(); txOpened = true; } |