diff options
author | Tamas Bunth <tamas.bunth@collabora.co.uk> | 2019-01-31 17:15:26 +0100 |
---|---|---|
committer | Tamás Bunth <btomi96@gmail.com> | 2019-02-04 21:32:25 +0100 |
commit | 6affbd2b57a336749a6a2ab3466a4e652a7ff365 (patch) | |
tree | 928227491c21e47b04dd8b6489a5ce0e420ca6fd /connectivity | |
parent | 4ed7f10d7676db0d20c706b915706d894e2113c5 (diff) |
tdf#122129 Firebird: fix concurrency issue
Allow only one isc_dsql_prepare at a time.
Change-Id: I3d5974057272cd47697aeb7be54579d0c1a662a0
Reviewed-on: https://gerrit.libreoffice.org/67231
Tested-by: Jenkins
Reviewed-by: Tamás Bunth <btomi96@gmail.com>
Diffstat (limited to 'connectivity')
-rw-r--r-- | connectivity/source/drivers/firebird/StatementCommonBase.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/connectivity/source/drivers/firebird/StatementCommonBase.cxx b/connectivity/source/drivers/firebird/StatementCommonBase.cxx index bb021bb9187d..2bd91c5356cf 100644 --- a/connectivity/source/drivers/firebird/StatementCommonBase.cxx +++ b/connectivity/source/drivers/firebird/StatementCommonBase.cxx @@ -26,6 +26,7 @@ #include <comphelper/sequence.hxx> #include <cppuhelper/typeprovider.hxx> #include <propertyids.hxx> +#include <vcl/svapp.hxx> #include <TConnection.hxx> using namespace ::connectivity::firebird; @@ -126,7 +127,7 @@ void OStatementCommonBase::prepareAndDescribeStatement(const OUString& sql, XSQLDA*& pOutSqlda, XSQLDA* pInSqlda) { - MutexGuard aGuard(m_aMutex); + SolarMutexGuard g; // tdf#122129 freeStatementHandle(); |