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

Domain-level CHECK constraints wrongly process NULL values [CORE2039] #2476

Closed
firebird-automations opened this issue Aug 12, 2008 · 10 comments

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: @dyemanov

Is duplicated by CORE2070
Is related to QA223

Test case:

CREATE DOMAIN D_DATE AS DATE
CHECK (VALUE BETWEEN DATE '01.01.1900' AND DATE '01.01.2050');

CREATE PROCEDURE TMP (PDATE D_DATE)
AS BEGIN END;

COMMIT;

EXECUTE PROCEDURE TMP (NULL);

/* ERROR:
The insert failed because a column definition includes validation constraints.
validation error for variable PDATE, value "1858-11-17".
At procedure 'TMP'.
*/

As we can see, the NULL value is treated as a zero-valued date by the check constraint.

Commits: 832d9c9 585d8a3

@firebird-automations
Copy link
Collaborator Author

Modified by: @dyemanov

assignee: Dmitry Yemanov [ dimitr ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @dyemanov

summary: Domain-level CHECK constraints wrongly processes NULL values => Domain-level CHECK constraints wrongly process NULL values

@firebird-automations
Copy link
Collaborator Author

Modified by: @dyemanov

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

resolution: Fixed [ 1 ]

Fix Version: 2.5 Beta 1 [ 10251 ]

Fix Version: 2.1.2 [ 10270 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @dyemanov

Link: This issue is duplicated by CORE2070 [ CORE2070 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pmakowski

Link: This issue block progress on QA223 [ QA223 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pmakowski

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

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

Link: This issue is related to QA223 [ QA223 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

Link: This issue block progress on QA223 [ QA223 ] =>

@firebird-automations
Copy link
Collaborator Author

Modified by: @pavel-zotov

QA Status: No test

@firebird-automations
Copy link
Collaborator Author

Modified by: @pavel-zotov

QA Status: No test => Done successfully

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