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-issue-importer opened this issue May 12, 2007 · 8 comments

Comments

@firebird-issue-importer

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-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented May 12, 2007

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-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented May 12, 2007

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-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Jun 20, 2007

Modified by: @pcisar

Link: This issue is related to QA133 [ QA133 ]

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Jul 18, 2007

Commented by: @pmakowski

Q/A tested ok

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Jul 18, 2007

Modified by: @pmakowski

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

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Jan 28, 2008

Modified by: @pcisar

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

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Jan 19, 2016

Modified by: @pavel-zotov

QA Status: No test

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Jan 19, 2016

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
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants