From a2686cc717187637c47f9c748b115a46bf16eced Mon Sep 17 00:00:00 2001 From: Wastack Date: Thu, 17 Nov 2016 14:41:35 +0100 Subject: [PATCH] tdf#74172 ensure prepared while setting numeric Change-Id: I727a0af5c3aa1b2e1f6c251b2dcb32feb46041d6 Reviewed-on: https://gerrit.libreoffice.org/30933 Tested-by: Jenkins Reviewed-by: Lionel Elie Mamane --- connectivity/source/drivers/firebird/PreparedStatement.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/connectivity/source/drivers/firebird/PreparedStatement.cxx b/connectivity/source/drivers/firebird/PreparedStatement.cxx index 28851935dd29..35da8ff3c8c4 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