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

Usage of field's alias in view WITH CHECK OPTION leads to incorrect compile error or incorrect internal triggers [CORE4315] #4638

Closed
firebird-automations opened this issue Jan 14, 2014 · 3 comments

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: @asfernandes

create table t1 (n1 integer, n2 integer);

-- Do not compile
recreate view v1 as select t1.n1 from t1 t1 where t1.n1 < t1.n2 with check option;
recreate view v1 as select t1.n1 from t1 where t1.n1 < t1.n2 with check option;
recreate view v1 as select x.n1 from t1 x where x.n1 < x.n2 with check option;

-- Compile but generates incorrect internal triggers
recreate view v1 as select n1 a from t1 where n1 < n2 with check option;

Commits: fc6110d FirebirdSQL/fbt-repository@71d614e

@firebird-automations
Copy link
Collaborator Author

Modified by: @asfernandes

assignee: Adriano dos Santos Fernandes [ asfernandes ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @asfernandes

status: Open [ 1 ] => Resolved [ 5 ]

resolution: Fixed [ 1 ]

Fix Version: 3.0 Alpha 2 [ 10560 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pavel-zotov

status: Resolved [ 5 ] => Resolved [ 5 ]

QA Status: Done successfully

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