diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2017-05-25 23:17:31 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2017-05-30 11:25:48 +0200 |
commit | a987fd3b320b02705d9b5239040024c03af5476f (patch) | |
tree | 895935055e99814d5238255853c21b181ffd4e5a /dbaccess | |
parent | 7c4298dc3ffc363d3bc9b3c880bf544c8c669746 (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>
(cherry picked from commit 182a62e0f199d26df0ae76ebf224c5d4b0fc3e26)
Reviewed-on: https://gerrit.libreoffice.org/38179
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
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); |