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

"Inappropriate self-reference of column" when using "with check option" with extract(...) [CORE4299] #4622

Closed
firebird-issue-importer opened this issue Dec 13, 2013 · 4 comments

Comments

@firebird-issue-importer

Submitted by: Peter Peter (cuteqt)

Is related to QA609

Hey, I was told on Stackoverflow that this might be a bug, some I'm submitting it here.

I tried to following SQL statement:

create view FOO as
select * from BAR
where extract(year from BAR.SOME_DATE) = '2011' with check option;

But I receive an error massage, saying, "SQL error code = -203. Inappropriate self-reference of column."

However, the following statement will work properly:

create view FOO as
select * from BAR
where BAR.SOME_DATE between '2011-01-01' and '2011-12-31' with check option;

Commits: 778cf94 FirebirdSQL/fbt-repository@e77f2cb

====== Test Details ======

Source description was found here:
http://stackoverflow.com/questions/20505769/inappropriate-self-reference-of-column-when-using-with-check-option-in-fireb

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Dec 20, 2013

Modified by: @asfernandes

assignee: Adriano dos Santos Fernandes [ asfernandes ]

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Dec 22, 2013

Modified by: @asfernandes

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

resolution: Fixed [ 1 ]

Fix Version: 2.5.3 [ 10461 ]

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented May 29, 2015

Modified by: @pavel-zotov

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

QA Status: Done successfully

Test Details: Source description was found here:
http://stackoverflow.com/questions/20505769/inappropriate-self-reference-of-column-when-using-with-check-option-in-fireb

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Sep 25, 2015

Modified by: @pcisar

Link: This issue is related to QA609 [ QA609 ]

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

Successfully merging a pull request may close this issue.

None yet
2 participants