diff options
author | Ocke Janssen <oj@openoffice.org> | 2002-11-19 10:47:08 +0000 |
---|---|---|
committer | Ocke Janssen <oj@openoffice.org> | 2002-11-19 10:47:08 +0000 |
commit | 865b8cc8a6c2b3c102243c85977b593710954342 (patch) | |
tree | 930881fefbd4cae3fd49e12638d92eb8c9aab866 /dbaccess/source/ui/tabledesign/TableController.cxx | |
parent | 6bebe51c4abbbc5dbbfec22f1d6bd3e2bfa618ef (diff) |
#105166# insert new string for missing type info
Diffstat (limited to 'dbaccess/source/ui/tabledesign/TableController.cxx')
-rw-r--r-- | dbaccess/source/ui/tabledesign/TableController.cxx | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/dbaccess/source/ui/tabledesign/TableController.cxx b/dbaccess/source/ui/tabledesign/TableController.cxx index ae1f66cc7b06..65cc47574fce 100644 --- a/dbaccess/source/ui/tabledesign/TableController.cxx +++ b/dbaccess/source/ui/tabledesign/TableController.cxx @@ -2,9 +2,9 @@ * * $RCSfile: TableController.cxx,v $ * - * $Revision: 1.85 $ + * $Revision: 1.86 $ * - * last change: $Author: oj $ $Date: 2002-11-14 07:55:57 $ + * last change: $Author: oj $ $Date: 2002-11-19 11:47:08 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -705,13 +705,30 @@ void SAL_CALL OTableController::initialize( const Sequence< Any >& aArguments ) } OSL_ENSURE(m_xFormatter.is(),"No NumberFormatter!"); } + } + catch(const SQLException&) + { + OSL_ENSURE(sal_False, "OTableController::initialize: caught an exception!"); + } + + try + { ::dbaui::fillTypeInfo(getConnection(),m_sTypeNames,m_aTypeInfo,m_aTypeInfoIndex); // fill the needed type information + } + catch(const SQLException&) + { + OSQLMessageBox aErr(getView(),ModuleRes(STR_STAT_WARNING),ModuleRes(STR_NO_TYPE_INFO_AVAILABLE)); + aErr.Execute(); + throw; + } + try + { loadData(); // fill the column information form the table getView()->initialize(); // show the windows and fill with our informations getUndoMgr()->Clear(); // clear all undo redo things setModified(sal_False); // and we are not modified yet } - catch(SQLException&) + catch(const SQLException&) { OSL_ENSURE(sal_False, "OTableController::initialize: caught an exception!"); } |