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

Include expected and actual string lenght into error message for sqlcode -802 [CORE3594] #3948

Closed
firebird-automations opened this issue Sep 8, 2011 · 5 comments

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: Denis Budyak (budden)

Votes: 2

I suggest reporting expected and actual string length when string overflow occurs.
E.g. "String truncation. Expected length %d, actual length %d"

Now it is sometimes very hard to find truncation errors in PSQL code like

select <MANY VALUES> from table into <MANY VARIABLES> where id=:a;

The ideal would be to include the name of the field or variable; Or framgment of data
which caused truncation into the message, but this seems to be more
difficult to implement.

Commits: ec99aff

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

See also: CORE4784 // Provide info about ACTUAL length of test string received from VARchar field insted of its DECLARED length when "string right truncatio" raises

@firebird-automations
Copy link
Collaborator Author

Modified by: @AlexPeshkoff

assignee: Alexander Peshkov [ alexpeshkoff ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @AlexPeshkoff

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

resolution: Fixed [ 1 ]

Fix Version: 3.0 Alpha 1 [ 10331 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

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

@firebird-automations
Copy link
Collaborator Author

Modified by: @pavel-zotov

QA Status: No test

@firebird-automations
Copy link
Collaborator Author

Modified by: @pavel-zotov

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

QA Status: No test => Done successfully

Test Details: See also: CORE4784 // Provide info about ACTUAL length of test string received from VARchar field insted of its DECLARED length when "string right truncatio" raises

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