From 182a62e0f199d26df0ae76ebf224c5d4b0fc3e26 Mon Sep 17 00:00:00 2001 From: Julien Nabet Date: Thu, 25 May 2017 23:17:31 +0200 Subject: Related tdf#108068: Retrieve error from Firebird engine Change-Id: If89a904740e54e81c2f2ae790ba8d05d830b0a5b Reviewed-on: https://gerrit.libreoffice.org/38043 Tested-by: Jenkins Reviewed-by: Lionel Elie Mamane --- dbaccess/source/ui/tabledesign/TableController.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'dbaccess/source') 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 xNewColumn(xIdxColumns->getByIndex(nPos),UNO_QUERY_THROW); -- cgit