Tag: cws_src680_qiq User: fs Date: 06/06/07 05:31:19 Modified: /dba/connectivity/source/parse/ sqlnode.cxx
Log: #i51143# allow subqueries in FROM File Changes: Directory: /dba/connectivity/source/parse/ ========================================== File [changed]: sqlnode.cxx Url: http://dba.openoffice.org/source/browse/dba/connectivity/source/parse/sqlnode.cxx?r1=1.38.62.6&r2=1.38.62.7 Delta lines: +7 -3 ------------------- --- sqlnode.cxx 1 Jun 2006 09:47:31 -0000 1.38.62.6 +++ sqlnode.cxx 7 Jun 2006 12:31:17 -0000 1.38.62.7 @@ -4,9 +4,9 @@ * * $RCSfile: sqlnode.cxx,v $ * - * $Revision: 1.38.62.6 $ + * $Revision: 1.38.62.7 $ * - * last change: $Author: fs $ $Date: 2006/06/01 09:47:31 $ + * last change: $Author: fs $ $Date: 2006/06/07 12:31:17 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -342,7 +342,7 @@ return true; // table_ref := '{' SQL_TOKEN_OJ joined_table '}' - OSL_ENSURE( SQL_ISPUNCTUATION( pTableRef->getChild(0), "(" ), "lcl_isAliasNamePresent: grammar changed(2)!" ); + OSL_ENSURE( SQL_ISPUNCTUATION( pTableRef->getChild(0), "(" ), "lcl_isAliasNamePresent: grammar changed(1)!" ); return false; } @@ -353,6 +353,10 @@ "lcl_isAliasNamePresent: grammar changed(3)!" ); return true; } + + if ( pTableRef->count() == 3 ) + // subquery as range_variable + return true; if ( pTableRef->count() == 1 ) return false; --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
