Tag: cws_src680_dba24e User: oj Date: 2007-12-19 13:45:21+0000 Modified: dba/dbaccess/source/ui/tabledesign/TableController.cxx
Log: #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.114.22.1 Delta lines: +12 -5 -------------------- --- TableController.cxx 2007-11-02 11:28:34+0000 1.114 +++ TableController.cxx 2007-12-19 13:45:18+0000 1.114.22.1 @@ -4,9 +4,9 @@ * * $RCSfile: TableController.cxx,v $ * - * $Revision: 1.114 $ + * $Revision: 1.114.22.1 $ * - * last change: $Author: hr $ $Date: 2007/11/02 11:28:34 $ + * last change: $Author: oj $ $Date: 2007/12/19 13:45:18 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -1560,8 +1560,15 @@ if(xColsSup.is()) bAddAllowed = Reference<XAppend>(xColsSup->getColumns(),UNO_QUERY).is(); + try + { Reference< XDatabaseMetaData > xMetaData = getMetaData( ); bAddAllowed = bAddAllowed || ( xMetaData.is() && xMetaData->supportsAlterTableWithAddColumn()); + } + catch(uno::Exception&) + { + bAddAllowed = sal_False; + } return bAddAllowed; } --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
