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

Add table name to text of validation contraint error message, to help identify error context [CORE4252] #4576

Closed
firebird-automations opened this issue Oct 24, 2013 · 8 comments

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: Maxim Kuzmin (cybermax)

Is duplicated by CORE4368
Is related to QA620

When occurs exception in INSERT, FB show info, like this:
The insert failed because a column definition includes validation constraints.
validation error for column ID_WRIT_OF_EXEC, value "*** null ***".

But if exception occurs in EXECUTE BLOCK or in program, sometimes impossible, looking at the name of the field, to determine the name of the table. Which complicates the correction of an error in database/program.

Commits: b826331 c0ac8b6 a736229 FirebirdSQL/fbt-repository@8f94aa3 FirebirdSQL/fbt-repository@511d4bc FirebirdSQL/fbt-repository@0c334b5

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

TODO: add statements of other kind that violates not only not-null definition (PK/UK/FK/CHECK, domain boundaries ?)

@firebird-automations
Copy link
Collaborator Author

Modified by: Maxim Kuzmin (cybermax)

priority: Major [ 3 ] => Trivial [ 5 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: Sean Leyne (seanleyne)

summary: Specify the name of the table, if an exception occurs when insert => Add table name to text of validation contraint error message

@firebird-automations
Copy link
Collaborator Author

Modified by: Sean Leyne (seanleyne)

summary: Add table name to text of validation contraint error message => Add table name to text of validation contraint error message, to help identify error context

@firebird-automations
Copy link
Collaborator Author

Modified by: @asfernandes

Link: This issue is duplicated by CORE4368 [ CORE4368 ]

@firebird-automations
Copy link
Collaborator Author

Commented by: @hvlad

Error message now includes table name.
It looks like "TABLE"."FIELD"

@firebird-automations
Copy link
Collaborator Author

Modified by: @hvlad

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

resolution: Fixed [ 1 ]

Fix Version: 2.5.3 [ 10461 ]

Fix Version: 3.0 Beta 1 [ 10332 ]

assignee: Vlad Khorsun [ hvlad ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pavel-zotov

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

QA Status: Done successfully

Test Details: TODO: add statements of other kind that violates not only not-null definition (PK/UK/FK/CHECK, domain boundaries ?)

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

Link: This issue is related to QA620 [ QA620 ]

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

No branches or pull requests

2 participants