summaryrefslogtreecommitdiff
path: root/connectivity/source/drivers/hsqldb/HConnection.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'connectivity/source/drivers/hsqldb/HConnection.cxx')
-rw-r--r--connectivity/source/drivers/hsqldb/HConnection.cxx13
1 files changed, 10 insertions, 3 deletions
diff --git a/connectivity/source/drivers/hsqldb/HConnection.cxx b/connectivity/source/drivers/hsqldb/HConnection.cxx
index 562fc493b579..16b537843d44 100644
--- a/connectivity/source/drivers/hsqldb/HConnection.cxx
+++ b/connectivity/source/drivers/hsqldb/HConnection.cxx
@@ -150,10 +150,17 @@ namespace connectivity { namespace hsqldb
m_bReadOnly = true;
}
}
- if ( !m_bReadOnly )
+ try
{
- Reference< XStatement > xStmt( m_xConnection->createStatement(), UNO_QUERY_THROW );
- xStmt->execute( OUString( "CHECKPOINT DEFRAG" ) );
+ if ( !m_bReadOnly )
+ {
+ Reference< XStatement > xStmt( m_xConnection->createStatement(), UNO_QUERY_THROW );
+ xStmt->execute( OUString( "CHECKPOINT DEFRAG" ) );
+ }
+ }
+ catch(const Exception& )
+ {
+ DBG_UNHANDLED_EXCEPTION();
}
}