diff options
author | Noel Power <noel.power@novell.com> | 2011-10-28 10:37:28 +0100 |
---|---|---|
committer | Noel Power <noel.power@novell.com> | 2011-10-28 10:38:53 +0100 |
commit | d0fb0305c4c0d46a4941e5f2464cbddb3fc72c70 (patch) | |
tree | 5eb0c5632831979bbda06a64f99194d2d440628d /connectivity | |
parent | 2a98e45039878508c931b30f58260ce01ce2e297 (diff) |
tweak debug messages from commit 9b58d9353073c6535da0529cd9a48e435f043fa8
Diffstat (limited to 'connectivity')
-rw-r--r-- | connectivity/source/drivers/odbcbase/OConnection.cxx | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/connectivity/source/drivers/odbcbase/OConnection.cxx b/connectivity/source/drivers/odbcbase/OConnection.cxx index 03bc39b8f635..0ea6448fe72a 100644 --- a/connectivity/source/drivers/odbcbase/OConnection.cxx +++ b/connectivity/source/drivers/odbcbase/OConnection.cxx @@ -82,17 +82,10 @@ OConnection::~OConnection() SQLRETURN rc; rc = N3SQLDisconnect( m_aConnectionHandle ); - if ( SQL_SUCCESS != rc && - SQL_SUCCESS_WITH_INFO != rc ) - OSL_TRACE( "Failure from SQLDisconnect, %s:%i" - , __FILE__, __LINE__ - ); + OSL_ENSURE( rc == SQL_SUCCESS || rc == SQL_SUCCESS_WITH_INFO, "Failure from SQLDisconnect" ); rc = N3SQLFreeHandle( SQL_HANDLE_DBC, m_aConnectionHandle ); - if ( SQL_SUCCESS != rc ) - OSL_TRACE( "Failure from SQLFreeHandle for connection, %s:%i" - , __FILE__, __LINE__ - ); + OSL_ENSURE( rc == SQL_SUCCESS , "Failure from SQLFreeHandle for connection"); m_aConnectionHandle = SQL_NULL_HANDLE; } |