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

Broken error handling in the case of a conversion error happened during index creation [CORE2916] #3300

Closed
firebird-issue-importer opened this issue Mar 10, 2010 · 9 comments

Comments

@firebird-issue-importer

Submitted by: @dyemanov

Is related to QA276

Test case:

create table tab (col date);
insert into tab (col) values (current_date);
commit;

create index itab on tab computed (cast(col as int));
commit;
-- no error returned, although the cast cannot succeed

select * from tab where cast(col as int) is null;
-- we get a conversion error which means that the record has been found, i.e. the index key is created as NULL

Commits: 13b54a0 dcc66e0 8c3db43

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Mar 10, 2010

Modified by: @dyemanov

assignee: Dmitry Yemanov [ dimitr ]

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Mar 10, 2010

Modified by: @dyemanov

status: Open [ 1 ] => In Progress [ 3 ]

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Mar 10, 2010

Modified by: @dyemanov

description: Test case:

create table tab (col date);
insert into tab (col) values (current_date);
commit;

create index itab on tab computed (cast(col as int));
-- no error returned, although the cast cannot succeed

select * from tab where cast(col as int) is null;
-- we get a conversion error which means that the record has been found, i.e. the index key is created as NULL

=>

Test case:

create table tab (col date);
insert into tab (col) values (current_date);
commit;

create index itab on tab computed (cast(col as int));
commit;
-- no error returned, although the cast cannot succeed

select * from tab where cast(col as int) is null;
-- we get a conversion error which means that the record has been found, i.e. the index key is created as NULL

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Mar 10, 2010

Modified by: @dyemanov

status: In Progress [ 3 ] => Open [ 1 ]

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Mar 10, 2010

Modified by: @dyemanov

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

resolution: Fixed [ 1 ]

Fix Version: 2.5 RC3 [ 10381 ]

Fix Version: 2.1.4 [ 10361 ]

Fix Version: 3.0 Alpha 1 [ 10331 ]

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Feb 23, 2011

Modified by: @pcisar

Link: This issue is related to QA276 [ QA276 ]

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented May 3, 2011

Commented by: @pmakowski

Q/A test made

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented May 3, 2011

Modified by: @pmakowski

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

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Jul 28, 2015

Modified by: @pavel-zotov

status: Closed [ 6 ] => Closed [ 6 ]

QA Status: Done successfully

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