summaryrefslogtreecommitdiff
path: root/connectivity
diff options
context:
space:
mode:
authorAndrzej J.R. Hunt <andrzej@ahunt.org>2013-09-11 09:36:21 +0100
committerAndrzej J.R. Hunt <andrzej@ahunt.org>2013-09-11 18:40:43 +0100
commit9ae206996dfdc4ec229db37622a362121b39abe4 (patch)
tree40a8a8dba7d7d4dcee7d6a8f26c5a4870e61778f /connectivity
parent960aee493a7bdbda69cbe60049edd9c4cafaab8e (diff)
Ensure we have prepared the statement before modify null.
Currently if the first set* method to be called is setNull, then we segfault since we try to access m_pInSqlda which doesn't exist yet. Change-Id: I4ad9c0a7d68da11b2260a596dd95c4c2cb5bcd4c
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/drivers/firebird/PreparedStatement.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/connectivity/source/drivers/firebird/PreparedStatement.cxx b/connectivity/source/drivers/firebird/PreparedStatement.cxx
index d60fa2804102..eb2fc178e71e 100644
--- a/connectivity/source/drivers/firebird/PreparedStatement.cxx
+++ b/connectivity/source/drivers/firebird/PreparedStatement.cxx
@@ -315,6 +315,7 @@ void SAL_CALL OPreparedStatement::setNull(sal_Int32 nIndex, sal_Int32 /*nSqlType
{
MutexGuard aGuard( m_aMutex );
checkDisposed(OStatementCommonBase_Base::rBHelper.bDisposed);
+ ensurePrepared();
setParameterNull(nIndex, true);
}