subselect with reference to outer select fails ----------------------------------------------
Key: CORE-3967 URL: http://tracker.firebirdsql.org/browse/CORE-3967 Project: Firebird Core Issue Type: Bug Affects Versions: 3.0 Initial Environment: probably all (tested with Windows 7 and Ubuntu 12.04) Reporter: Frank Schlottmann-Goedde Using the following script in isql against the employee database demonstrates the error /* subselect with reference to outer select fails with: Statement failed, SQLSTATE = 42S22 Dynamic SQL Error -SQL error code = -206 -Column unknown -R1.RDB$RELATION_NAME -At line 8, column 32 */ select R1.RDB$RELATION_NAME from RDB$RELATION_FIELDS F1 join RDB$RELATIONS R1 on F1.RDB$RELATION_NAME = R1.RDB$RELATION_NAME where F1.RDB$FIELD_NAME ='EMP_NO' and (not exists(select R2.RDB$RELATION_NAME from RDB$RELATION_FIELDS F2 join RDB$RELATIONS R2 on F2.RDB$RELATION_NAME=R1.RDB$RELATION_NAME where F2.RDB$FIELD_NAME ='PHONE_EXT')); -- 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 ------------------------------------------------------------------------------ The Windows 8 Center - In partnership with Sourceforge Your idea - your app - 30 days. Get started! http://windows8center.sourceforge.net/ what-html-developers-need-to-know-about-coding-windows-8-metro-style-apps/ Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel