summaryrefslogtreecommitdiff
path: root/connectivity/source/drivers/dbase/DTables.cxx
diff options
context:
space:
mode:
authorOcke Janssen <oj@openoffice.org>2001-09-18 12:14:31 +0000
committerOcke Janssen <oj@openoffice.org>2001-09-18 12:14:31 +0000
commit26229a697231db7ca8b9dc7c0232dab7cf555485 (patch)
tree2dcdb065e8636224708b6fa1fb0d4f5582b68a65 /connectivity/source/drivers/dbase/DTables.cxx
parentf1e561c11efa4f35f788a2a9c59eb5ece0b36788 (diff)
#92103# check if content is readonly
Diffstat (limited to 'connectivity/source/drivers/dbase/DTables.cxx')
-rw-r--r--connectivity/source/drivers/dbase/DTables.cxx23
1 files changed, 17 insertions, 6 deletions
diff --git a/connectivity/source/drivers/dbase/DTables.cxx b/connectivity/source/drivers/dbase/DTables.cxx
index 6a4a9a8599ea..d892f4e7f565 100644
--- a/connectivity/source/drivers/dbase/DTables.cxx
+++ b/connectivity/source/drivers/dbase/DTables.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: DTables.cxx,v $
*
- * $Revision: 1.16 $
+ * $Revision: 1.17 $
*
- * last change: $Author: oj $ $Date: 2001-08-13 13:58:56 $
+ * last change: $Author: oj $ $Date: 2001-09-18 13:14:31 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -148,11 +148,22 @@ void SAL_CALL ODbaseTables::appendByDescriptor( const Reference< XPropertySet >&
if(pTable)
{
pTable->setPropertyValue(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_NAME),descriptor->getPropertyValue(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_NAME)));
- if(pTable->CreateImpl())
+ try
{
- pTable->setNew(sal_False);
- pTable->construct();
- ODbaseTables_BASE_BASE::appendByDescriptor(Reference< XPropertySet >(*pTable,UNO_QUERY));
+ if(pTable->CreateImpl())
+ {
+ pTable->setNew(sal_False);
+ pTable->construct();
+ ODbaseTables_BASE_BASE::appendByDescriptor(Reference< XPropertySet >(*pTable,UNO_QUERY));
+ }
+ }
+ catch(SQLException&)
+ {
+ throw;
+ }
+ catch(Exception&)
+ {
+ throw SQLException();
}
}
}