From 65d143de74c660ce8416b9f8700b0e7517464661 Mon Sep 17 00:00:00 2001 From: David Tardon Date: Tue, 4 Nov 2014 16:34:15 +0100 Subject: coverity#706362 uncaught exception Change-Id: I7200fe17c66cd904f0fc243bf8e33d6c24079729 --- connectivity/source/drivers/odbc/ODatabaseMetaData.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'connectivity') diff --git a/connectivity/source/drivers/odbc/ODatabaseMetaData.cxx b/connectivity/source/drivers/odbc/ODatabaseMetaData.cxx index 9c556fa24c97..a06016fe4bb1 100644 --- a/connectivity/source/drivers/odbc/ODatabaseMetaData.cxx +++ b/connectivity/source/drivers/odbc/ODatabaseMetaData.cxx @@ -1279,12 +1279,16 @@ sal_Int32 SAL_CALL ODatabaseMetaData::getDefaultTransactionIsolation( ) throw(S return nValueTranslated; } -sal_Int32 SAL_CALL ODatabaseMetaData::getDriverMinorVersion( ) throw(RuntimeException, std::exception) +sal_Int32 SAL_CALL ODatabaseMetaData::getDriverMinorVersion( ) throw(RuntimeException, std::exception) try { OUString aValue; OTools::GetInfo(m_pConnection,m_aConnectionHandle,SQL_DRIVER_VER,aValue,*this,m_pConnection->getTextEncoding()); return aValue.copy(0,aValue.lastIndexOf('.')).toInt32(); } +catch (const SQLException &) +{ + return 0; +} OUString SAL_CALL ODatabaseMetaData::getSQLKeywords( ) throw(SQLException, RuntimeException, std::exception) { -- cgit