Skip to content

Commit f574617

Browse files
committed
PostgreSQL: fixes for sessionTransactionNoAutoCommit.
1 parent 5e8bf15 commit f574617

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Data/PostgreSQL/testsuite/src/SQLExecutor.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1989,6 +1989,7 @@ void SQLExecutor::sessionTransactionNoAutoCommit(const std::string& connect)
19891989
Statement stmt = ((*_pSession) << "SELECT COUNT(*) FROM Person",
19901990
into(count), async, now);
19911991
local << "SELECT COUNT(*) FROM Person", into(locCount), now;
1992+
stmt.wait();
19921993
assertTrue (0 == count);
19931994
assertTrue (2 == locCount);
19941995

@@ -2013,6 +2014,9 @@ void SQLExecutor::sessionTransactionNoAutoCommit(const std::string& connect)
20132014
assertTrue (!local.isTransaction());
20142015
assertTrue (!local.getFeature("autoCommit"));
20152016

2017+
stmt.reset((*_pSession));
2018+
stmt = ((*_pSession) << "SELECT COUNT(*) FROM Person",
2019+
into(count), async, now);
20162020
stmt.wait();
20172021
assertTrue (2 == count);
20182022

0 commit comments

Comments
 (0)