[Libreoffice-commits] core.git: connectivity/source
Wastack
btomi96 at gmail.com
Mon Nov 21 16:54:46 UTC 2016
connectivity/source/drivers/firebird/PreparedStatement.cxx | 4 ++++
1 file changed, 4 insertions(+)
New commits:
commit a2686cc717187637c47f9c748b115a46bf16eced
Author: Wastack <btomi96 at gmail.com>
Date: Thu Nov 17 14:41:35 2016 +0100
tdf#74172 ensure prepared while setting numeric
Change-Id: I727a0af5c3aa1b2e1f6c251b2dcb32feb46041d6
Reviewed-on: https://gerrit.libreoffice.org/30933
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Lionel Elie Mamane <lionel at mamane.lu>
diff --git a/connectivity/source/drivers/firebird/PreparedStatement.cxx b/connectivity/source/drivers/firebird/PreparedStatement.cxx
index 2885193..35da8ff 100644
--- a/connectivity/source/drivers/firebird/PreparedStatement.cxx
+++ b/connectivity/source/drivers/firebird/PreparedStatement.cxx
@@ -599,6 +599,10 @@ void SAL_CALL OPreparedStatement::setObjectWithInfo( sal_Int32 parameterIndex, c
{
checkDisposed(OStatementCommonBase_Base::rBHelper.bDisposed);
::osl::MutexGuard aGuard( m_aMutex );
+ ensurePrepared();
+
+ checkParameterIndex(parameterIndex);
+ setParameterNull(parameterIndex, false);
XSQLVAR* pVar = m_pInSqlda->sqlvar + (parameterIndex - 1);
int dType = (pVar->sqltype & ~1); // drop null flag
More information about the Libreoffice-commits
mailing list