diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2017-05-25 23:17:31 +0200 |
---|---|---|
committer | Lionel Elie Mamane <lionel@mamane.lu> | 2017-05-30 07:56:04 +0200 |
commit | 182a62e0f199d26df0ae76ebf224c5d4b0fc3e26 (patch) | |
tree | 86c3cfb9cd0487d099c7b8826b57718aea7d8199 /dbaccess | |
parent | dc36d07d9e5e1c70c0e7bdc9adede5a10e4413f1 (diff) |
Related tdf#108068: Retrieve error from Firebird engine
Change-Id: If89a904740e54e81c2f2ae790ba8d05d830b0a5b
Reviewed-on: https://gerrit.libreoffice.org/38043
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Lionel Elie Mamane <lionel@mamane.lu>
Diffstat (limited to 'dbaccess')
-rw-r--r-- | dbaccess/source/ui/tabledesign/TableController.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/dbaccess/source/ui/tabledesign/TableController.cxx b/dbaccess/source/ui/tabledesign/TableController.cxx index 68ec90e114b1..2da0d3c63ff3 100644 --- a/dbaccess/source/ui/tabledesign/TableController.cxx +++ b/dbaccess/source/ui/tabledesign/TableController.cxx @@ -1117,12 +1117,13 @@ void OTableController::alterColumns() } catch(const SQLException&) { // we couldn't alter the column so we have to add new columns + SQLExceptionInfo aError( ::cppu::getCaughtException() ); bReload = true; if(xDrop.is() && xAppend.is()) { OUString aMessage(ModuleRes(STR_TABLEDESIGN_ALTER_ERROR)); aMessage = aMessage.replaceFirst("$column$",pField->GetName()); - ScopedVclPtrInstance< OSQLWarningBox > aMsg( getView(), aMessage, WB_YES_NO | WB_DEF_YES ); + ScopedVclPtrInstance< OSQLWarningBox > aMsg( getView(), aMessage, WB_YES_NO | WB_DEF_YES, &aError); if ( aMsg->Execute() != RET_YES ) { Reference<XPropertySet> xNewColumn(xIdxColumns->getByIndex(nPos),UNO_QUERY_THROW); |