Skip to content

Commit

Permalink
PostgreSQL: fixes for sessionTransactionNoAutoCommit.
Browse files Browse the repository at this point in the history
  • Loading branch information
frwilckens committed Dec 3, 2023
1 parent 5e8bf15 commit f574617
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Data/PostgreSQL/testsuite/src/SQLExecutor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -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);

Expand Down

0 comments on commit f574617

Please sign in to comment.