From f57461719bd1f1aea9dcde22e96aaf9b2f4003ed Mon Sep 17 00:00:00 2001 From: Friedrich Wilckens Date: Sat, 2 Dec 2023 21:30:35 -0800 Subject: [PATCH] PostgreSQL: fixes for sessionTransactionNoAutoCommit. --- Data/PostgreSQL/testsuite/src/SQLExecutor.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Data/PostgreSQL/testsuite/src/SQLExecutor.cpp b/Data/PostgreSQL/testsuite/src/SQLExecutor.cpp index 27966e018f..42b3f9a14b 100644 --- a/Data/PostgreSQL/testsuite/src/SQLExecutor.cpp +++ b/Data/PostgreSQL/testsuite/src/SQLExecutor.cpp @@ -1989,6 +1989,7 @@ void SQLExecutor::sessionTransactionNoAutoCommit(const std::string& connect) Statement stmt = ((*_pSession) << "SELECT COUNT(*) FROM Person", into(count), async, now); local << "SELECT COUNT(*) FROM Person", into(locCount), now; + stmt.wait(); assertTrue (0 == count); assertTrue (2 == locCount); @@ -2013,6 +2014,9 @@ void SQLExecutor::sessionTransactionNoAutoCommit(const std::string& connect) assertTrue (!local.isTransaction()); assertTrue (!local.getFeature("autoCommit")); + stmt.reset((*_pSession)); + stmt = ((*_pSession) << "SELECT COUNT(*) FROM Person", + into(count), async, now); stmt.wait(); assertTrue (2 == count);