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?
to your account
Submitted by: Cosmin Apreutesei (cosmin_ap2)
Is duplicated by CORE2839
Is duplicated by CORE3751
Is related to CORE4184
Is related to QA541
CREATE DOMAIN BOOLEAN AS INTEGER NOT NULL CHECK (value = 0 or value = 1);
CREATE PROCEDURE TEST returns (b boolean)
if (1 = 0) then
select * from test
The select throws "validation error for variable B, value *** null ***".
The answer is correct for execute procedure test returning b into x but not for select from test.
The text was updated successfully, but these errors were encountered:
assignee: Adriano dos Santos Fernandes [ asfernandes ]
Sorry, something went wrong.
Commented by: Sean Leyne (seanleyne)
Cosmin, I believe that the functionality is working exactly as intended, null does not meet the domain check, as such the value is not allowed.
Commented by: Cosmin Apreutesei (cosmin_ap2)
The procedure does not return any records. How can a domain check be applied where there is no value to apply to? Does that make any sense?
Theory aside, the practical implication is that I now have to uselessly initialize all my output parameters regardless whether the proc ever returns any records or not.
Commented by: @asfernandes
Output parameters (when not initialized) are validated at procedure end or suspending.
If no value is returned, looks like a bug for me if they are validated.
Link: This issue is duplicated by CORE2839 [ CORE2839 ]
status: Open [ 1 ] => Resolved [ 5 ]
resolution: Fixed [ 1 ]
Fix Version: 3.0 Alpha 1 [ 10331 ]
Link: This issue is duplicated by CORE3751 [ CORE3751 ]
Link: This issue is related to CORE4184 [ CORE4184 ]
Link: This issue is related to QA541 [ QA541 ]
status: Resolved [ 5 ] => Resolved [ 5 ]
QA Status: Done successfully
Commented by: @pcisar
status: Resolved [ 5 ] => Closed [ 6 ]
No branches or pull requests