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

String truncation error when concatenating _UTF8 string onto extract(year result [CORE1255] #1679

Closed
firebird-automations opened this issue May 12, 2007 · 8 comments

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: Richard Wesley (hawkfish)

Is related to QA133

The query

SELECT ((EXTRACT(YEAR FROM CURRENT_DATE) || _UTF8'')) col FROM rdb$database GROUP BY 1;

Produces the error
Statement failed, SQLCODE = -802
arithmetic exception, numeric overflow, or string truncation

It should just return a column with a single value '2007'. Note that both the _UTF8 introducer and the GROUP BY are needed.

@firebird-automations
Copy link
Collaborator Author

Commented by: @asfernandes

This is fixed in V2.1, but I think backport is not easy, as it involves some code refactorations.
If this is simplified test case, please test real problem in V2.1.

@firebird-automations
Copy link
Collaborator Author

Modified by: @asfernandes

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

resolution: Fixed [ 1 ]

Fix Version: 2.1 Alpha 1 [ 10150 ]

assignee: Adriano dos Santos Fernandes [ asfernandes ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

Link: This issue is related to QA133 [ QA133 ]

@firebird-automations
Copy link
Collaborator Author

Commented by: @pmakowski

Q/A tested ok

@firebird-automations
Copy link
Collaborator Author

Modified by: @pmakowski

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

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

Workflow: jira [ 12080 ] => Firebird [ 14468 ]

@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
Projects
None yet
Development

No branches or pull requests

2 participants