-
-
Notifications
You must be signed in to change notification settings - Fork 223
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 exception on UPPER/LOWER functions, UTF8 database and some multibyte characters [CORE5255] #5534
Comments
Commented by: Олег Короткий (олег короткий) Also CONTAINING function bug: |
Commented by: @dyemanov What was the connection charset in these tests? |
Modified by: @dyemanovsecurity: Developers [ 10012 ] => |
Commented by: Олег Короткий (олег короткий) UTF8 |
Modified by: @dyemanovassignee: Adriano dos Santos Fernandes [ asfernandes ] |
Commented by: Олег Короткий (олег короткий) 2.5 is not affected |
Commented by: Олег Короткий (олег короткий) LIKE is not affected, only CONTAINING |
Commented by: Олег Короткий (олег короткий) My small collection of bad chars: |
Commented by: Franz Bartlechner (haba) Same problem here! Reproduce the Exception: CREATE TABLE TEST (TEST VARCHAR(10) CHARACTER SET UTF8 NOT NULL COLLATE UTF8); |
Commented by: Franz Bartlechner (haba) Found another char: |
Commented by: Franz Bartlechner (haba) I iterate through many/all chars and found out the following problematic: |
The problem with UPPER/LOWER is being fixed as part of this report. Problem with CONTAINING is left for #6851. |
…8 database and some multibyte characters.
…8 database and some multibyte characters.
@asfernandes Will this also be fixed for 4.0.1? |
Yes. I've put now the missing label. |
::: test details ::: |
@pavel-zotov, as I've commented:
|
sorry for noise, I was inattentive. Test for this issue will check all except statements with |
::: test details ::: Test verifies work of predicates, functions for string handling and comparison. |
Submitted by: Олег Короткий (олег короткий)
Votes: 2
select upper('ɐ') from rdb$database
-----------------
arithmetic exception, numeric overflow, or string truncation.
string right truncation.
expected length 2, actual 2.
select lower('ɐ') from rdb$database
-----------------
LOWER
ɐ
select lower('Ⱥ') from rdb$database
-----------------
arithmetic exception, numeric overflow, or string truncation.
string right truncation.
expected length 2, actual 2.
select upper('Ⱥ') from rdb$database
-----------------
UPPER
Ⱥ
The text was updated successfully, but these errors were encountered: