diff options
Diffstat (limited to 'dbaccess/source/ui/tabledesign/TableController.cxx')
-rw-r--r-- | dbaccess/source/ui/tabledesign/TableController.cxx | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/dbaccess/source/ui/tabledesign/TableController.cxx b/dbaccess/source/ui/tabledesign/TableController.cxx index d81cf5f9a5cf..f54c5104c955 100644 --- a/dbaccess/source/ui/tabledesign/TableController.cxx +++ b/dbaccess/source/ui/tabledesign/TableController.cxx @@ -1482,6 +1482,7 @@ void OTableController::alterColumns() // ----------------------------------------------------------------------------- void OTableController::dropPrimaryKey() { + SQLExceptionInfo aInfo; try { Reference<XKeysSupplier> xKeySup(m_xTable,UNO_QUERY); @@ -1506,11 +1507,24 @@ void OTableController::dropPrimaryKey() } } } + catch(const SQLContext& e) + { + aInfo = SQLExceptionInfo(e); + } + catch(const SQLWarning& e) + { + aInfo = SQLExceptionInfo(e); + } + catch(const SQLException& e) + { + aInfo = SQLExceptionInfo(e); + } catch( const Exception& ) { DBG_UNHANDLED_EXCEPTION(); } + showError(aInfo); } // ----------------------------------------------------------------------------- void OTableController::assignTable() |