[Libreoffice-commits] core.git: connectivity/source
Wastack
btomi96 at gmail.com
Wed Aug 17 13:15:10 UTC 2016
connectivity/source/drivers/firebird/Driver.cxx | 4 ++++
1 file changed, 4 insertions(+)
New commits:
commit d3a510e6ec7a42a7a30a24b7373931b8a8ef1a54
Author: Wastack <btomi96 at gmail.com>
Date: Thu Aug 11 13:13:57 2016 +0200
tdf#73073 GSoC Firebird Set autoCommit true
Use autoCommit for embedded Firebird database.
Change-Id: I5633960b8e3d4e6ee8f9b4f29406c7208a059521
Reviewed-on: https://gerrit.libreoffice.org/28047
Reviewed-by: Lionel Elie Mamane <lionel at mamane.lu>
Tested-by: Lionel Elie Mamane <lionel at mamane.lu>
diff --git a/connectivity/source/drivers/firebird/Driver.cxx b/connectivity/source/drivers/firebird/Driver.cxx
index a3224e5..ff63fbe 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;
More information about the Libreoffice-commits
mailing list