mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-24 09:12:28 +02:00
PostgreSQL SessionHandle: don't call startTransaction in setAutoCommit
This commit is contained in:
@@ -277,11 +277,9 @@ void SessionHandle::setAutoCommit(bool aShouldAutoCommit)
|
||||
|
||||
if (aShouldAutoCommit)
|
||||
{
|
||||
commit(); // end any in process transaction
|
||||
}
|
||||
else
|
||||
{
|
||||
startTransaction(); // start a new transaction
|
||||
Poco::FastMutex::ScopedLock mutexLocker(_sessionMutex);
|
||||
if (_inTransaction)
|
||||
commit(); // end any in process transaction
|
||||
}
|
||||
|
||||
_isAutoCommit = aShouldAutoCommit;
|
||||
|
||||
Reference in New Issue
Block a user