summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--connectivity/source/drivers/firebird/Driver.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/connectivity/source/drivers/firebird/Driver.cxx b/connectivity/source/drivers/firebird/Driver.cxx
index a3224e56a962..ff63fbe114ea 100644
--- a/connectivity/source/drivers/firebird/Driver.cxx
+++ b/connectivity/source/drivers/firebird/Driver.cxx
@@ -192,6 +192,10 @@ Reference< XConnection > SAL_CALL FirebirdDriver::connect(
Connection* pCon = new Connection(this);
Reference< XConnection > xCon = pCon;
pCon->construct(url, info);
+
+ if (url == "sdbc:embedded:firebird")
+ pCon->setAutoCommit(true);
+
m_xConnections.push_back(WeakReferenceHelper(*pCon));
return xCon;