Kaydet (Commit) d3a510e6 authored tarafından Wastack's avatar Wastack Kaydeden (comit) Lionel Elie Mamane

tdf#73073 GSoC Firebird Set autoCommit true

Use autoCommit for embedded Firebird database.

Change-Id: I5633960b8e3d4e6ee8f9b4f29406c7208a059521
Reviewed-on: https://gerrit.libreoffice.org/28047Reviewed-by: 's avatarLionel Elie Mamane <lionel@mamane.lu>
Tested-by: 's avatarLionel Elie Mamane <lionel@mamane.lu>
üst 45f42681
......@@ -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;
......
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