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>
This commit is contained in:
parent
45f42681f4
commit
d3a510e6ec
@ -192,6 +192,10 @@ Reference< XConnection > SAL_CALL FirebirdDriver::connect(
|
|||||||
Connection* pCon = new Connection(this);
|
Connection* pCon = new Connection(this);
|
||||||
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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user