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

UNION vs UTF8 literals : arithmetic exception is thrown [CORE1126] #1547

Closed
firebird-automations opened this issue Feb 12, 2007 · 11 comments
Closed

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: @dyemanov

SELECT _UTF8 'Z' FROM RDB$DATABASE
UNION ALL
SELECT _UTF8 'A' FROM RDB$DATABASE

throws isc_arith_except. But it works OK if a collation is explicitly specified:

SELECT _UTF8 'Z' COLLATE UNICODE FROM RDB$DATABASE
UNION ALL
SELECT _UTF8 'A' COLLATE UNICODE FROM RDB$DATABASE

Commits: bb68ec8 a57d797

@firebird-automations
Copy link
Collaborator Author

Modified by: @dyemanov

description: SELECT _UTF8 'Z' FROM RDB$DATABASE
UNION ALL
SELECT _UTF8 'A' FROM RDB$DATABASE
UNION ALL
SELECT _UTF8 'a' FROM RDB$DATABASE
ORDER BY 1

throws isc_arith_except. But it works OK if a collation is explicitly specified:

SELECT _UTF8 'Z' COLLATE UNICODE FROM RDB$DATABASE
UNION ALL
SELECT _UTF8 'A' COLLATE UNICODE FROM RDB$DATABASE
UNION ALL
SELECT _UTF8 'a' COLLATE UNICODE FROM RDB$DATABASE
ORDER BY 1

=>

SELECT _UTF8 'Z' FROM RDB$DATABASE
UNION ALL
SELECT _UTF8 'A' FROM RDB$DATABASE

throws isc_arith_except. But it works OK if a collation is explicitly specified:

SELECT _UTF8 'Z' COLLATE UNICODE FROM RDB$DATABASE
UNION ALL
SELECT _UTF8 'A' COLLATE UNICODE FROM RDB$DATABASE

summary: ORDER BY vs UTF8 literals : arithmetic exception is thrown => UNION vs UTF8 literals : arithmetic exception is thrown

@firebird-automations
Copy link
Collaborator Author

Modified by: @asfernandes

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

resolution: Fixed [ 1 ]

Fix Version: 2.0.1 [ 10090 ]

Fix Version: 2.1 [ 10041 ]

@firebird-automations
Copy link
Collaborator Author

Commented by: @pmakowski

Q/A test made and ok
added test to Q/A

@firebird-automations
Copy link
Collaborator Author

Modified by: @pmakowski

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

@firebird-automations
Copy link
Collaborator Author

Commented by: @pcisar

Reopened to update ticket information.

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

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

resolution: Fixed [ 1 ] =>

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

Fix Version: 2.1 Alpha 1 [ 10150 ]

Fix Version: 2.1.0 [ 10041 ] =>

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

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

resolution: Fixed [ 1 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

Workflow: jira [ 11592 ] => Firebird [ 15457 ]

@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