diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-08-31 21:42:34 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-09-01 10:40:14 +0100 |
commit | 1e9881441482f61c770a30f8294e6a38ec1a2ebd (patch) | |
tree | cbd5cf8bb676069c40cbeb6f9342a58b0d2a8ff0 /connectivity | |
parent | e4a1209443fbda58aed07a28cc28612f0b060bae (diff) |
coverity#1372388 Uncaught exception
Change-Id: I55c4e2ad1f3384c4e8b0a6cc88b83fa96cf2dede
Diffstat (limited to 'connectivity')
4 files changed, 4 insertions, 7 deletions
diff --git a/connectivity/source/drivers/mork/MPreparedStatement.cxx b/connectivity/source/drivers/mork/MPreparedStatement.cxx index 5376e0ea2402..196b623897ee 100644 --- a/connectivity/source/drivers/mork/MPreparedStatement.cxx +++ b/connectivity/source/drivers/mork/MPreparedStatement.cxx @@ -62,9 +62,8 @@ void SAL_CALL OPreparedStatement::disposing() m_xParamColumns = nullptr; } - OCommonStatement::StatementType OPreparedStatement::parseSql( const OUString& sql , bool bAdjusted ) - throw ( css::sdbc::SQLException, css::uno::RuntimeException ) + throw (css::sdbc::SQLException, css::uno::RuntimeException, std::exception) { StatementType eStatementType = OCommonStatement::parseSql( sql, bAdjusted ); if ( eStatementType != eSelect ) @@ -81,7 +80,6 @@ OCommonStatement::StatementType OPreparedStatement::parseSql( const OUString& sq return eStatementType; } - void OPreparedStatement::initializeResultSet( OResultSet* _pResult ) { OCommonStatement::initializeResultSet( _pResult ); diff --git a/connectivity/source/drivers/mork/MPreparedStatement.hxx b/connectivity/source/drivers/mork/MPreparedStatement.hxx index 65268bc7eef1..2aa9aef1c273 100644 --- a/connectivity/source/drivers/mork/MPreparedStatement.hxx +++ b/connectivity/source/drivers/mork/MPreparedStatement.hxx @@ -58,7 +58,7 @@ namespace connectivity // OCommonStatement overridables virtual StatementType - parseSql( const OUString& sql , bool bAdjusted = false) throw ( css::sdbc::SQLException, css::uno::RuntimeException ) override; + parseSql( const OUString& sql , bool bAdjusted = false) throw ( css::sdbc::SQLException, css::uno::RuntimeException, std::exception ) override; virtual void initializeResultSet( OResultSet* _pResult ) override; virtual void clearCachedResultSet() override; virtual void cacheResultSet( const ::rtl::Reference< OResultSet >& _pResult ) override; diff --git a/connectivity/source/drivers/mork/MStatement.cxx b/connectivity/source/drivers/mork/MStatement.cxx index f74e2e1c222b..0096d36e094d 100644 --- a/connectivity/source/drivers/mork/MStatement.cxx +++ b/connectivity/source/drivers/mork/MStatement.cxx @@ -119,9 +119,8 @@ void SAL_CALL OCommonStatement::close( ) throw(SQLException, RuntimeException, dispose(); } - OCommonStatement::StatementType OCommonStatement::parseSql( const OUString& sql , bool bAdjusted) - throw ( SQLException, RuntimeException ) + throw ( SQLException, RuntimeException, std::exception ) { OUString aErr; diff --git a/connectivity/source/drivers/mork/MStatement.hxx b/connectivity/source/drivers/mork/MStatement.hxx index 76f9f1f88095..d199142943fa 100644 --- a/connectivity/source/drivers/mork/MStatement.hxx +++ b/connectivity/source/drivers/mork/MStatement.hxx @@ -106,7 +106,7 @@ namespace connectivity /** called to do the parsing of a to-be-executed SQL statement, and set all members as needed */ virtual StatementType - parseSql( const OUString& sql , bool bAdjusted = false) throw ( css::sdbc::SQLException, css::uno::RuntimeException ); + parseSql( const OUString& sql , bool bAdjusted = false) throw ( css::sdbc::SQLException, css::uno::RuntimeException, std::exception ); /** called to initialize a result set, according to a previously parsed SQL statement */ virtual void initializeResultSet( OResultSet* _pResult ); |