User: vg      
Date: 2008-01-29 08:52:40+0000
Modified:
   dba/dbaccess/source/ui/tabledesign/TableController.cxx

Log:
 INTEGRATION: CWS dba24e_SRC680 (1.114.22); FILE MERGED
 2008/01/06 11:30:31 fs 1.114.22.2: #i10000#
 2007/12/19 13:45:18 oj 1.114.22.1: #152043# catch exception

File Changes:

Directory: /dba/dbaccess/source/ui/tabledesign/
===============================================

File [changed]: TableController.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/dbaccess/source/ui/tabledesign/TableController.cxx?r1=1.114&r2=1.115
Delta lines:  +11 -2
--------------------
--- TableController.cxx 2007-11-02 11:28:34+0000        1.114
+++ TableController.cxx 2008-01-29 08:52:37+0000        1.115
@@ -45,6 +45,7 @@
 #ifndef _STRING_HXX 
 #include <tools/string.hxx>
 #endif
+#include <tools/diagnose_ex.h>
 #ifndef _SFXSIDS_HRC
 #include <sfx2/sfxsids.hrc>
 #endif
@@ -1560,8 +1561,16 @@
        if(xColsSup.is())
                bAddAllowed = 
Reference<XAppend>(xColsSup->getColumns(),UNO_QUERY).is();
 
+    try
+    {
        Reference< XDatabaseMetaData > xMetaData = getMetaData( );
        bAddAllowed = bAddAllowed || ( xMetaData.is() && 
xMetaData->supportsAlterTableWithAddColumn());
+    }
+    catch(Exception&)
+    {
+        DBG_UNHANDLED_EXCEPTION();
+        bAddAllowed = sal_False;
+    }
 
        return bAddAllowed;
 }




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to