diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-07-01 15:37:44 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-07-01 16:43:05 +0100 |
commit | 968f633b247d06c958d0b5695ab1ed962509f795 (patch) | |
tree | 464d3fe9ca4e8e7f5a084636345dad4ead2a1d7f /connectivity/source/drivers/odbc | |
parent | b35f3dfb1afa78722a4cd8e69a625456a6dd01d6 (diff) |
coverity#706382 Uncaught exception
and
coverity#706377
coverity#706378
coverity#706382
Change-Id: I17f672e31867b1be77c16a8a6e121a8f67df7c90
Diffstat (limited to 'connectivity/source/drivers/odbc')
3 files changed, 21 insertions, 21 deletions
diff --git a/connectivity/source/drivers/odbc/ODatabaseMetaDataResultSet.cxx b/connectivity/source/drivers/odbc/ODatabaseMetaDataResultSet.cxx index 7a2d3dc947d4..ecc8bdaa9168 100644 --- a/connectivity/source/drivers/odbc/ODatabaseMetaDataResultSet.cxx +++ b/connectivity/source/drivers/odbc/ODatabaseMetaDataResultSet.cxx @@ -195,13 +195,13 @@ template < typename T, SQLSMALLINT sqlTypeId > T ODatabaseMetaDataResultSet::get Reference< ::com::sun::star::io::XInputStream > SAL_CALL ODatabaseMetaDataResultSet::getBinaryStream( sal_Int32 /*columnIndex*/ ) throw(SQLException, RuntimeException, std::exception) { - ::dbtools::throwFunctionNotSupportedException( "XRow::getBinaryStream", *this ); + ::dbtools::throwFunctionNotSupportedSQLException( "XRow::getBinaryStream", *this ); return NULL; } Reference< ::com::sun::star::io::XInputStream > SAL_CALL ODatabaseMetaDataResultSet::getCharacterStream( sal_Int32 /*columnIndex*/ ) throw(SQLException, RuntimeException, std::exception) { - ::dbtools::throwFunctionNotSupportedException( "XRow::getCharacterStream", *this ); + ::dbtools::throwFunctionNotSupportedSQLException( "XRow::getCharacterStream", *this ); return NULL; } @@ -353,33 +353,33 @@ Reference< XResultSetMetaData > SAL_CALL ODatabaseMetaDataResultSet::getMetaData Reference< XArray > SAL_CALL ODatabaseMetaDataResultSet::getArray( sal_Int32 /*columnIndex*/ ) throw(SQLException, RuntimeException, std::exception) { - ::dbtools::throwFunctionNotSupportedException( "XRow::getArray", *this ); + ::dbtools::throwFunctionNotSupportedSQLException( "XRow::getArray", *this ); return NULL; } Reference< XClob > SAL_CALL ODatabaseMetaDataResultSet::getClob( sal_Int32 /*columnIndex*/ ) throw(SQLException, RuntimeException, std::exception) { - ::dbtools::throwFunctionNotSupportedException( "XRow::getClob", *this ); + ::dbtools::throwFunctionNotSupportedSQLException( "XRow::getClob", *this ); return NULL; } Reference< XBlob > SAL_CALL ODatabaseMetaDataResultSet::getBlob( sal_Int32 /*columnIndex*/ ) throw(SQLException, RuntimeException, std::exception) { - ::dbtools::throwFunctionNotSupportedException( "XRow::getBlob", *this ); + ::dbtools::throwFunctionNotSupportedSQLException( "XRow::getBlob", *this ); return NULL; } Reference< XRef > SAL_CALL ODatabaseMetaDataResultSet::getRef( sal_Int32 /*columnIndex*/ ) throw(SQLException, RuntimeException, std::exception) { - ::dbtools::throwFunctionNotSupportedException( "XRow::getRef", *this ); + ::dbtools::throwFunctionNotSupportedSQLException( "XRow::getRef", *this ); return NULL; } Any SAL_CALL ODatabaseMetaDataResultSet::getObject( sal_Int32 /*columnIndex*/, const Reference< ::com::sun::star::container::XNameAccess >& /*typeMap*/ ) throw(SQLException, RuntimeException, std::exception) { - ::dbtools::throwFunctionNotSupportedException( "XRow::getObject", *this ); + ::dbtools::throwFunctionNotSupportedSQLException( "XRow::getObject", *this ); return Any(); } diff --git a/connectivity/source/drivers/odbc/OPreparedStatement.cxx b/connectivity/source/drivers/odbc/OPreparedStatement.cxx index ec2c17230921..ba402bb3c6ec 100644 --- a/connectivity/source/drivers/odbc/OPreparedStatement.cxx +++ b/connectivity/source/drivers/odbc/OPreparedStatement.cxx @@ -570,13 +570,13 @@ void SAL_CALL OPreparedStatement::setBlob( sal_Int32 parameterIndex, const Refer void SAL_CALL OPreparedStatement::setArray( sal_Int32 /*parameterIndex*/, const Reference< XArray >& /*x*/ ) throw(SQLException, RuntimeException, std::exception) { - ::dbtools::throwFunctionNotSupportedException( "XParameters::setArray", *this ); + ::dbtools::throwFunctionNotSupportedSQLException( "XParameters::setArray", *this ); } void SAL_CALL OPreparedStatement::setRef( sal_Int32 /*parameterIndex*/, const Reference< XRef >& /*x*/ ) throw(SQLException, RuntimeException, std::exception) { - ::dbtools::throwFunctionNotSupportedException( "XParameters::setRef", *this ); + ::dbtools::throwFunctionNotSupportedSQLException( "XParameters::setRef", *this ); } void SAL_CALL OPreparedStatement::setObjectWithInfo( sal_Int32 parameterIndex, const Any& x, sal_Int32 sqlType, sal_Int32 scale ) throw(SQLException, RuntimeException, std::exception) @@ -674,7 +674,7 @@ void SAL_CALL OPreparedStatement::clearParameters( ) throw(SQLException, Runtim void SAL_CALL OPreparedStatement::clearBatch( ) throw(SQLException, RuntimeException, std::exception) { - ::dbtools::throwFunctionNotSupportedException( "XPreparedBatchExecution::clearBatch", *this ); + ::dbtools::throwFunctionNotSupportedSQLException( "XPreparedBatchExecution::clearBatch", *this ); // clearParameters( ); // m_aBatchList.erase(); } @@ -682,13 +682,13 @@ void SAL_CALL OPreparedStatement::clearBatch( ) throw(SQLException, RuntimeExce void SAL_CALL OPreparedStatement::addBatch( ) throw(SQLException, RuntimeException, std::exception) { - ::dbtools::throwFunctionNotSupportedException( "XPreparedBatchExecution::addBatch", *this ); + ::dbtools::throwFunctionNotSupportedSQLException( "XPreparedBatchExecution::addBatch", *this ); } Sequence< sal_Int32 > SAL_CALL OPreparedStatement::executeBatch( ) throw(SQLException, RuntimeException, std::exception) { - ::dbtools::throwFunctionNotSupportedException( "XPreparedBatchExecution::executeBatch", *this ); + ::dbtools::throwFunctionNotSupportedSQLException( "XPreparedBatchExecution::executeBatch", *this ); // not reached, but keep -Werror happy return Sequence< sal_Int32 > (); } diff --git a/connectivity/source/drivers/odbc/OResultSet.cxx b/connectivity/source/drivers/odbc/OResultSet.cxx index fd70b4a7b0e4..5cda9222694f 100644 --- a/connectivity/source/drivers/odbc/OResultSet.cxx +++ b/connectivity/source/drivers/odbc/OResultSet.cxx @@ -427,7 +427,7 @@ Reference< XInputStream > SAL_CALL OResultSet::getBinaryStream( sal_Int32 /*colu ::osl::MutexGuard aGuard( m_aMutex ); checkDisposed(OResultSet_BASE::rBHelper.bDisposed); - ::dbtools::throwFunctionNotSupportedException( "XRow::getBinaryStream", *this ); + ::dbtools::throwFunctionNotSupportedSQLException( "XRow::getBinaryStream", *this ); return NULL; } @@ -437,7 +437,7 @@ Reference< XInputStream > SAL_CALL OResultSet::getCharacterStream( sal_Int32 /*c ::osl::MutexGuard aGuard( m_aMutex ); checkDisposed(OResultSet_BASE::rBHelper.bDisposed); - ::dbtools::throwFunctionNotSupportedException( "XRow::getBinaryStream", *this ); + ::dbtools::throwFunctionNotSupportedSQLException( "XRow::getBinaryStream", *this ); return NULL; } @@ -593,7 +593,7 @@ Reference< XResultSetMetaData > SAL_CALL OResultSet::getMetaData( ) throw(SQLEx Reference< XArray > SAL_CALL OResultSet::getArray( sal_Int32 /*columnIndex*/ ) throw(SQLException, RuntimeException, std::exception) { - ::dbtools::throwFunctionNotSupportedException( "XRow::getArray", *this ); + ::dbtools::throwFunctionNotSupportedSQLException( "XRow::getArray", *this ); return NULL; } @@ -601,20 +601,20 @@ Reference< XArray > SAL_CALL OResultSet::getArray( sal_Int32 /*columnIndex*/ ) t Reference< XClob > SAL_CALL OResultSet::getClob( sal_Int32 /*columnIndex*/ ) throw(SQLException, RuntimeException, std::exception) { - ::dbtools::throwFunctionNotSupportedException( "XRow::getClob", *this ); + ::dbtools::throwFunctionNotSupportedSQLException( "XRow::getClob", *this ); return NULL; } Reference< XBlob > SAL_CALL OResultSet::getBlob( sal_Int32 /*columnIndex*/ ) throw(SQLException, RuntimeException, std::exception) { - ::dbtools::throwFunctionNotSupportedException( "XRow::getBlob", *this ); + ::dbtools::throwFunctionNotSupportedSQLException( "XRow::getBlob", *this ); return NULL; } Reference< XRef > SAL_CALL OResultSet::getRef( sal_Int32 /*columnIndex*/ ) throw(SQLException, RuntimeException, std::exception) { - ::dbtools::throwFunctionNotSupportedException( "XRow::getRef", *this ); + ::dbtools::throwFunctionNotSupportedSQLException( "XRow::getRef", *this ); return NULL; } @@ -1061,7 +1061,7 @@ void SAL_CALL OResultSet::updateInt( sal_Int32 columnIndex, sal_Int32 x ) throw( void SAL_CALL OResultSet::updateLong( sal_Int32 /*columnIndex*/, sal_Int64 /*x*/ ) throw(SQLException, RuntimeException, std::exception) { - ::dbtools::throwFunctionNotSupportedException( "XRowUpdate::updateLong", *this ); + ::dbtools::throwFunctionNotSupportedSQLException( "XRowUpdate::updateLong", *this ); } void SAL_CALL OResultSet::updateFloat( sal_Int32 columnIndex, float x ) throw(SQLException, RuntimeException, std::exception) @@ -1250,7 +1250,7 @@ sal_Bool SAL_CALL OResultSet::hasOrderedBookmarks( ) throw( SQLException, Runt sal_Int32 SAL_CALL OResultSet::hashBookmark( const Any& /*bookmark*/ ) throw( SQLException, RuntimeException, std::exception) { - ::dbtools::throwFunctionNotSupportedException( "XRowLocate::hashBookmark", *this ); + ::dbtools::throwFunctionNotSupportedSQLException( "XRowLocate::hashBookmark", *this ); return 0; } @@ -1386,7 +1386,7 @@ bool OResultSet::isBookmarkable() const void OResultSet::setFetchDirection(sal_Int32 _par0) { - ::dbtools::throwFunctionNotSupportedException( "setFetchDirection", *this ); + ::dbtools::throwFunctionNotSupportedSQLException( "setFetchDirection", *this ); OSL_ENSURE(_par0>0,"Illegal fetch direction!"); if ( _par0 > 0 ) |