We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Submitted by: @paulvink
Is related to QA281
According to the 2.1 Release Notes, ASCII_VAL() raises an error if the first character of the argument is multi-byte. This makes sense.
In practice, the function fails if the string contains a multi-byte character *anywhere*:
(connection charset is ISO8859_1)
select ascii_val (cast('Hoplala' as char(12) character set utf8)) from rdb$database
returns 72
select ascii_val (cast('Hopläla' as char(12) character set utf8)) from rdb$database
raises
335544321 arithmetic exception, numeric overflow, or string truncation Cannot transliterate character between character sets
Commits: 877b408 33c0372 c95ee8c
The text was updated successfully, but these errors were encountered:
assignee: Adriano dos Santos Fernandes [ asfernandes ]
Sorry, something went wrong.
status: Open [ 1 ] => Resolved [ 5 ]
resolution: Fixed [ 1 ]
Fix Version: 2.1.4 [ 10361 ]
Fix Version: 2.5.1 [ 10333 ]
Fix Version: 3.0 Alpha 1 [ 10331 ]
Link: This issue is related to QA281 [ QA281 ]
status: Resolved [ 5 ] => Closed [ 6 ]
status: Closed [ 6 ] => Closed [ 6 ]
QA Status: Done successfully
asfernandes
No branches or pull requests
Submitted by: @paulvink
Is related to QA281
According to the 2.1 Release Notes, ASCII_VAL() raises an error if the first character of the argument is multi-byte. This makes sense.
In practice, the function fails if the string contains a multi-byte character *anywhere*:
(connection charset is ISO8859_1)
select ascii_val (cast('Hoplala' as char(12) character set utf8)) from rdb$database
returns 72
select ascii_val (cast('Hopläla' as char(12) character set utf8)) from rdb$database
raises
335544321
arithmetic exception, numeric overflow, or string truncation
Cannot transliterate character between character sets
Commits: 877b408 33c0372 c95ee8c
The text was updated successfully, but these errors were encountered: