Tag: cws_src680_qiq User: fs Date: 06/05/18 02:18:44 Modified: /dba/dbaccess/source/ui/tabledesign/ TableController.cxx
Log: #i51143# when creating/pasting/saving a table/query, care for name collisions with both tables and queries (usign a DynamicTableOrQueryNameCheck), if the database supports queries in queries File Changes: Directory: /dba/dbaccess/source/ui/tabledesign/ =============================================== File [changed]: TableController.cxx Url: http://dba.openoffice.org/source/browse/dba/dbaccess/source/ui/tabledesign/TableController.cxx?r1=1.103.2.2&r2=1.103.2.3 Delta lines: +9 -11 -------------------- --- TableController.cxx 17 May 2006 11:49:03 -0000 1.103.2.2 +++ TableController.cxx 18 May 2006 09:18:41 -0000 1.103.2.3 @@ -4,9 +4,9 @@ * * $RCSfile: TableController.cxx,v $ * - * $Revision: 1.103.2.2 $ + * $Revision: 1.103.2.3 $ * - * last change: $Author: fs $ $Date: 2006/05/17 11:49:03 $ + * last change: $Author: fs $ $Date: 2006/05/18 09:18:41 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -425,16 +425,14 @@ aDefaultName = ::dbaui::createDefaultName(getConnection()->getMetaData(),xTables,aName); } - PlainNameCheck aNameChecker( xTables ); + DynamicTableOrQueryNameCheck aNameChecker( getConnection(), CommandType::TABLE ); OSaveAsDlg aDlg( getView(), CommandType::TABLE, getORB(), getConnection(), aDefaultName, aNameChecker ); - if(aDlg.Execute() == RET_OK) - { + if ( aDlg.Execute() != RET_OK ) + return sal_False; + m_sName = aDlg.getName(); sCatalog = aDlg.getCatalog(); sSchema = aDlg.getSchema(); - } - else - return sal_False; } // did we get a name --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
