Incorrect check for nested CTE
------------------------------

                 Key: CORE-6100
                 URL: http://tracker.firebirdsql.org/browse/CORE-6100
             Project: Firebird Core
          Issue Type: Bug
          Components: Engine
    Affects Versions: 3.0.4, 3.0.5
            Reporter: Karol Bieniaszewski


Firebird incorrectly check for nested CTE.
Below query have not nested CTE


WITH X AS
(
    SELECT 6 AS NUMBER FROM RDB$DATABASE
)

SELECT * FROM RDB$RELATIONS R
WHERE

NOT EXISTS(
    WITH Y AS
    (
    SELECT 6 AS NUMBER FROM RDB$DATABASE
    )
    SELECT * FROM Y INNER JOIN RDB$RELATION_FIELDS RF ON 1=1 WHERE 
RF.RDB$RELATION_NAME=R.RDB$RELATION_NAME AND RF.RDB$FIELD_POSITION>Y.NUMBER
)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://tracker.firebirdsql.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to