Kaydet (Commit) e9e1813a authored tarafından Lionel Elie Mamane's avatar Lionel Elie Mamane

tdf#106463 set new firebird connections as autocommit by default

as per SDBC specifications

Change-Id: I132a8e565468bcacf0fa5ee0dfb62bf0dd717e24
Reviewed-on: https://gerrit.libreoffice.org/67015
Tested-by: Jenkins
Reviewed-by: 's avatarTamás Bunth <btomi96@gmail.com>
Reviewed-by: 's avatarLionel Elie Mamane <lionel@mamane.lu>
üst 474fa67c
...@@ -87,7 +87,7 @@ Connection::Connection() ...@@ -87,7 +87,7 @@ Connection::Connection()
, m_sFirebirdURL() , m_sFirebirdURL()
, m_bIsEmbedded(false) , m_bIsEmbedded(false)
, m_bIsFile(false) , m_bIsFile(false)
, m_bIsAutoCommit(false) , m_bIsAutoCommit(true)
, m_bIsReadOnly(false) , m_bIsReadOnly(false)
, m_aTransactionIsolation(TransactionIsolation::REPEATABLE_READ) , m_aTransactionIsolation(TransactionIsolation::REPEATABLE_READ)
#if SAL_TYPES_SIZEOFPOINTER == 8 #if SAL_TYPES_SIZEOFPOINTER == 8
......
...@@ -181,9 +181,6 @@ Reference< XConnection > SAL_CALL FirebirdDriver::connect( ...@@ -181,9 +181,6 @@ Reference< XConnection > SAL_CALL FirebirdDriver::connect(
Reference< XConnection > xCon = pCon; Reference< XConnection > xCon = pCon;
pCon->construct(url, info); pCon->construct(url, info);
if (url == "sdbc:embedded:firebird")
pCon->setAutoCommit(true);
m_xConnections.push_back(WeakReferenceHelper(*pCon)); m_xConnections.push_back(WeakReferenceHelper(*pCon));
return xCon; return xCon;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment