diff options
author | Andrzej J.R. Hunt <andrzej@ahunt.org> | 2013-08-27 20:52:37 +0100 |
---|---|---|
committer | Andrzej J.R. Hunt <andrzej@ahunt.org> | 2013-08-27 20:58:32 +0100 |
commit | 7bc88db8c500b41fe926fb99cd403accd696e671 (patch) | |
tree | 246d695b9ecbd5d2bb7dc1c67a0cb3efe19f6f91 /connectivity | |
parent | 186f264dc2ac45c3de16a651b64de77794589eab (diff) |
Implemet setNull. (firebird-sdbc)
Change-Id: I9fd53a5e8b5d1dba467fa8064f9f2ea1b93f26df
Diffstat (limited to 'connectivity')
-rw-r--r-- | connectivity/source/drivers/firebird/PreparedStatement.cxx | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/connectivity/source/drivers/firebird/PreparedStatement.cxx b/connectivity/source/drivers/firebird/PreparedStatement.cxx index 00f7b0ea4b79..2c59931c1ca8 100644 --- a/connectivity/source/drivers/firebird/PreparedStatement.cxx +++ b/connectivity/source/drivers/firebird/PreparedStatement.cxx @@ -323,6 +323,16 @@ Reference< XResultSet > SAL_CALL OPreparedStatement::executeQuery() } //----- XParameters ----------------------------------------------------------- +void SAL_CALL OPreparedStatement::setNull(sal_Int32 nIndex, sal_Int32 nSqlType) + throw(SQLException, RuntimeException) +{ + (void) nSqlType; + MutexGuard aGuard( m_pConnection->getMutex() ); + checkDisposed(OStatementCommonBase_Base::rBHelper.bDisposed); + + setParameterNull(nIndex, true); +} + void SAL_CALL OPreparedStatement::setBoolean(sal_Int32 nIndex, sal_Bool x) throw(SQLException, RuntimeException) { @@ -458,16 +468,6 @@ void SAL_CALL OPreparedStatement::setFloat( sal_Int32 parameterIndex, float x ) } // ------------------------------------------------------------------------- -void SAL_CALL OPreparedStatement::setNull( sal_Int32 parameterIndex, sal_Int32 sqlType ) throw(SQLException, RuntimeException) -{ - (void) parameterIndex; - (void) sqlType; - ::osl::MutexGuard aGuard( m_pConnection->getMutex() ); - checkDisposed(OStatementCommonBase_Base::rBHelper.bDisposed); - -} -// ------------------------------------------------------------------------- - void SAL_CALL OPreparedStatement::setClob( sal_Int32 parameterIndex, const Reference< XClob >& x ) throw(SQLException, RuntimeException) { (void) parameterIndex; |