INTEGRATION: CWS dba23a (1.110.2); FILE MERGED
2007/03/14 12:16:47 fs 1.110.2.1: #i75261# when asking for re-creation of columns, also show the caught exception
This commit is contained in:
parent
0f4bd27deb
commit
ea1d11edcf
1 changed files with 8 additions and 6 deletions
|
@ -4,9 +4,9 @@
|
|||
*
|
||||
* $RCSfile: TableController.cxx,v $
|
||||
*
|
||||
* $Revision: 1.110 $
|
||||
* $Revision: 1.111 $
|
||||
*
|
||||
* last change: $Author: vg $ $Date: 2007-01-15 14:37:28 $
|
||||
* last change: $Author: kz $ $Date: 2007-05-10 10:41:47 $
|
||||
*
|
||||
* The Contents of this file are made available subject to
|
||||
* the terms of GNU Lesser General Public License Version 2.1.
|
||||
|
@ -1267,10 +1267,12 @@ void OTableController::alterColumns()
|
|||
{
|
||||
if(xDrop.is() && xAppend.is())
|
||||
{
|
||||
String aMessage(ModuleRes(STR_TABLEDESIGN_ALTER_ERROR));
|
||||
aMessage.SearchAndReplaceAscii("$column$",pField->GetName());
|
||||
String sTitle(ModuleRes(STR_STAT_WARNING));
|
||||
OSQLMessageBox aMsg(getView(),sTitle,aMessage,WB_YES_NO|WB_DEF_YES,OSQLMessageBox::Warning);
|
||||
String aMessage( ModuleRes( STR_TABLEDESIGN_ALTER_ERROR ) );
|
||||
aMessage.SearchAndReplaceAscii( "$column$", pField->GetName() );
|
||||
String sTitle( ModuleRes( STR_STAT_WARNING ) );
|
||||
|
||||
SQLExceptionInfo aError( ::cppu::getCaughtException() );
|
||||
OSQLMessageBox aMsg( getView(), sTitle, aMessage, WB_YES_NO | WB_DEF_YES , OSQLMessageBox::Warning, &aError );
|
||||
bNotOk = aMsg.Execute() == RET_YES;
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue