summaryrefslogtreecommitdiff
path: root/connectivity
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2014-11-04 16:34:15 +0100
committerDavid Tardon <dtardon@redhat.com>2014-11-04 19:52:50 +0100
commit65d143de74c660ce8416b9f8700b0e7517464661 (patch)
tree2a63aac591157fba14b9653074399c211a3e5d4f /connectivity
parent2a91eea8ae3c60f8193c6c3a61682c312077f915 (diff)
coverity#706362 uncaught exception
Change-Id: I7200fe17c66cd904f0fc243bf8e33d6c24079729
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/drivers/odbc/ODatabaseMetaData.cxx6
1 files changed, 5 insertions, 1 deletions
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)
{