tdf#74172 ensure prepared while setting numeric
Change-Id: I727a0af5c3aa1b2e1f6c251b2dcb32feb46041d6 Reviewed-on: https://gerrit.libreoffice.org/30933 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Lionel Elie Mamane <lionel@mamane.lu>
This commit is contained in:
parent
efbf399e77
commit
a2686cc717
@ -599,6 +599,10 @@ void SAL_CALL OPreparedStatement::setObjectWithInfo( sal_Int32 parameterIndex, c
|
|||||||
{
|
{
|
||||||
checkDisposed(OStatementCommonBase_Base::rBHelper.bDisposed);
|
checkDisposed(OStatementCommonBase_Base::rBHelper.bDisposed);
|
||||||
::osl::MutexGuard aGuard( m_aMutex );
|
::osl::MutexGuard aGuard( m_aMutex );
|
||||||
|
ensurePrepared();
|
||||||
|
|
||||||
|
checkParameterIndex(parameterIndex);
|
||||||
|
setParameterNull(parameterIndex, false);
|
||||||
|
|
||||||
XSQLVAR* pVar = m_pInSqlda->sqlvar + (parameterIndex - 1);
|
XSQLVAR* pVar = m_pInSqlda->sqlvar + (parameterIndex - 1);
|
||||||
int dType = (pVar->sqltype & ~1); // drop null flag
|
int dType = (pVar->sqltype & ~1); // drop null flag
|
||||||
|
Loading…
x
Reference in New Issue
Block a user