diff options
author | Wastack <btomi96@gmail.com> | 2016-08-11 13:13:57 +0200 |
---|---|---|
committer | Lionel Elie Mamane <lionel@mamane.lu> | 2016-08-17 13:14:48 +0000 |
commit | d3a510e6ec7a42a7a30a24b7373931b8a8ef1a54 (patch) | |
tree | a8ab34fb5ba785f822349f813e6a072146b692a6 | |
parent | 45f42681f4d1260c42140a313560534e605f81a4 (diff) |
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@mamane.lu>
Tested-by: Lionel Elie Mamane <lionel@mamane.lu>
-rw-r--r-- | connectivity/source/drivers/firebird/Driver.cxx | 4 |
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; |