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
Improve error messaging/exceptions [CORE1852] #2281
Comments
Modified by: @livius2description: add possibility to create exception definition for table simple example and use in eg. check constraint : 1. more extended and use in eg. check constraint : => add possibility to create exception definition for table simple example and use in eg. check constraint : 2. more extended and use in eg. check constraint : |
Modified by: @livius2description: add possibility to create exception definition for table simple example and use in eg. check constraint : 2. more extended and use in eg. check constraint : => add possibility to create exception definition for table simple example and use in eg. check constraint : 2. more extended and use in eg. check constraint : |
Commented by: @asfernandes Usage of custom exceptions for constraints (primary, unique, foreign and check) is in my plan for next versions. |
Commented by: @livius2 this is greate news for me :) |
Commented by: @livius2 I change only priority of this raport without any changing |
Modified by: @livius2priority: Major [ 3 ] => Minor [ 4 ] |
Modified by: @dyemanovVersion: 3.0 Alpha 1 [ 10331 ] assignee: Adriano dos Santos Fernandes [ asfernandes ] |
Modified by: @asfernandes |
Commented by: @asfernandes |
Modified by: @pcisarstatus: Resolved [ 5 ] => Closed [ 6 ] |
Modified by: @dyemanovFix Version: 3.0 Alpha 1 [ 10331 ] => |
Commented by: Arioch (arioch) > CORE736 and CORE832 supercedes this one and the ticket got closed but how can those ever be superceding it ? CORE832 does not touch constraint at all - it only touches Procedural SQL, AFAICT CORE736 only touches FK-constraints and does not touch CHECK-constraints, which are the topic here |
Submitted by: @livius2
Is related to CORE736
Is related to CORE832
Votes: 5
add possibility to create exception definition for table
simple example
1. create exception 'Exception Name' on 'TableName'(FieldName, FieldName2) message 'Field % have wrong value for recordID %"
and use in eg. check constraint :
create exception EPriceMustBePositve on Costs('Price', 'ID') message 'Field % must be greater then 0 for recordID %"
alter table costs add Constraint CK_XXXXXX Check(Price>0.0) exception EPriceMustBePositve
2. more extended
create exception 'Exception name' on 'TableName'(FieldName, value 'FieldName', 'FieldName2') message 'Field % wrong value % for record ID"
and use in eg. check constraint :
create exception EPriceMustBePositve on Costs('Price', value 'Price', 'ID') message 'Field % must be greater then 0 current is: % for recordID %"
alter table costs add Constraint CK_XXXXXX Check(Price>0.0) exception EPriceMustBePositve
The text was updated successfully, but these errors were encountered: