summaryrefslogtreecommitdiff
path: root/dbaccess
diff options
context:
space:
mode:
authorOcke Janssen <oj@openoffice.org>2001-04-11 05:46:23 +0000
committerOcke Janssen <oj@openoffice.org>2001-04-11 05:46:23 +0000
commit6b09d6f97e5ff7bc0694eb4b1f20483dde9ae086 (patch)
tree589cbebbc45be5e2d552058c790572f63fc01591 /dbaccess
parent33579b1d327263a562b916af485592ee13620f54 (diff)
catch exception around creating the containers
Diffstat (limited to 'dbaccess')
-rw-r--r--dbaccess/source/core/dataaccess/connection.cxx16
1 files changed, 12 insertions, 4 deletions
diff --git a/dbaccess/source/core/dataaccess/connection.cxx b/dbaccess/source/core/dataaccess/connection.cxx
index 38f84d078670..b08823844fdc 100644
--- a/dbaccess/source/core/dataaccess/connection.cxx
+++ b/dbaccess/source/core/dataaccess/connection.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: connection.cxx,v $
*
- * $Revision: 1.13 $
+ * $Revision: 1.14 $
*
- * last change: $Author: oj $ $Date: 2001-03-29 07:07:13 $
+ * last change: $Author: oj $ $Date: 2001-04-11 06:46:23 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -404,11 +404,19 @@ OConnection::OConnection(ODatabaseSource& _rDB, const OConfigurationNode& _rTabl
,m_aTableFilter(_rDB.m_aTableFilter)
,m_aTableTypeFilter(_rDB.m_aTableTypeFilter)
,m_xORB(_rxORB)
+ ,m_pTables(NULL)
+ ,m_pViews(NULL)
{
DBG_CTOR(OConnection,NULL);
- m_pTables = new OTableContainer(_rTablesConfig,_rCommitLocation,*this, m_aMutex, this, this);
- m_pViews = new OViewContainer(*this, m_aMutex, this, this);
+ try
+ {
+ m_pTables = new OTableContainer(_rTablesConfig,_rCommitLocation,*this, m_aMutex, this, this);
+ m_pViews = new OViewContainer(*this, m_aMutex, this, this);
+ }
+ catch(const SQLException&)
+ {
+ }
// initialize the queries
DBG_ASSERT(_rDB.m_aConfigurationNode.isValid(), "OConnection::OConnection : invalid configuration location of my parent !");
}