Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect error position if query has an error within derived table [CORE1659] #2084

Open
firebird-automations opened this issue Dec 19, 2007 · 2 comments

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: Kuznetsov Eugene (eugene)

SQL> select *
CON> from rdb$relations r left join
CON> (select first 1 * from rdb$relation_fields rf
CON> where err_identifier = rf.rdb$relation_name
CON> order by rdb$field_name) r1
CON> on r.rdb$relation_name = r1.rdb$relation_name;

returns error

Statement failed, SQLCODE = -206
Dynamic SQL Error
-SQL error code = -206
-Column unknown
-ERR_IDENTIFIER
-At line 6, column 29

Error position is incorrect, as it points to "r1.rdb$relation_name"
in "on r.rdb$relation_name = r1.rdb$relation_name" condition

It should be "At line 4, column 8", as in 2.0.x branch

Best regards, Eugene

@firebird-automations
Copy link
Collaborator Author

Modified by: Kuznetsov Eugene (eugene)

description: SQL> select *
CON> from rdb$relations r left join
CON> (select first 1 * from rdb$relation_fields rf
CON> where err_identifier = rf.rdb$relation_name
CON> order by rdb$field_name) rf
CON> on r.rdb$relation_name = rf.rdb$relation_name;

returns error

Statement failed, SQLCODE = -206
Dynamic SQL Error
-SQL error code = -206
-Column unknown
-ERR_IDENTIFIER
-At line 6, column 29

Error position is incorrect, as it points to "r1.rdb$relation_name"
in "on r.rdb$relation_name = r1.rdb$relation_name" condition

It should be "At line 4, column 8", as in 2.0.x branch

Best regards, Eugene

=>

SQL> select *
CON> from rdb$relations r left join
CON> (select first 1 * from rdb$relation_fields rf
CON> where err_identifier = rf.rdb$relation_name
CON> order by rdb$field_name) r1
CON> on r.rdb$relation_name = r1.rdb$relation_name;

returns error

Statement failed, SQLCODE = -206
Dynamic SQL Error
-SQL error code = -206
-Column unknown
-ERR_IDENTIFIER
-At line 6, column 29

Error position is incorrect, as it points to "r1.rdb$relation_name"
in "on r.rdb$relation_name = r1.rdb$relation_name" condition

It should be "At line 4, column 8", as in 2.0.x branch

Best regards, Eugene

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

Workflow: jira [ 13702 ] => Firebird [ 14018 ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant