Tag: cws_src680_dba204c User: fs Date: 2006/07/19 06:37:38 Modified: dba/dbaccess/source/ui/querydesign/QueryDesignView.cxx
Log: #i67530# properly initialize the field list when encountering expressions File Changes: Directory: /dba/dbaccess/source/ui/querydesign/ =============================================== File [changed]: QueryDesignView.cxx Url: http://dba.openoffice.org/source/browse/dba/dbaccess/source/ui/querydesign/QueryDesignView.cxx?r1=1.80&r2=1.80.8.1 Delta lines: +8 -15 -------------------- --- QueryDesignView.cxx 10 Jul 2006 15:41:12 -0000 1.80 +++ QueryDesignView.cxx 19 Jul 2006 13:37:35 -0000 1.80.8.1 @@ -4,9 +4,9 @@ * * $RCSfile: QueryDesignView.cxx,v $ * - * $Revision: 1.80 $ + * $Revision: 1.80.8.1 $ * - * last change: $Author: obo $ $Date: 2006/07/10 15:41:12 $ + * last change: $Author: fs $ $Date: 2006/07/19 13:37:35 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -2167,19 +2167,12 @@ aInfo->SetTabWindow( NULL ); // since we support queries in queries, the thingie might belong to an existing "table" - if ( !lcl_findColumnInTables( aColumns, *pTabList, aInfo ) ) + OQueryTableWindow* pExistingTable = lcl_findColumnInTables( aColumns, *pTabList, aInfo ); + if ( pExistingTable ) { - // okay, it doesn't belong to a query directly. In this case, it must belong - // to the (only) table in the FROM part - DBG_ASSERT( pTabList->size() == 1, "InstallFields: unqualified expression, but more or less than one table!" ); - if ( !pTabList->empty() ) - { - OQueryTableWindow* pWindow = static_cast< OQueryTableWindow* >( pTabList->begin()->second ); - aInfo->SetTabWindow( pWindow ); - aInfo->SetTable( pWindow->GetTableName() ); - aInfo->SetAlias( pWindow->GetAliasName() ); - aInfo->SetDatabase( pWindow->GetComposedName() ); - } + aInfo->SetTabWindow( pExistingTable ); + aInfo->SetTable( pExistingTable->GetTableName() ); + aInfo->SetAlias( pExistingTable->GetAliasName() ); } aInfo->SetDataType(DataType::DOUBLE); --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
