-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed blankspace padding in char datatype for multibyte characters (#…
…2167) Currently when multi-byte character is casted to char(1) space padding was not done properly. This PR will fix this issue. Task: BABEL-4638 Signed-off-by: Rohit Bhagat <[email protected]>
- Loading branch information
1 parent
70f247d
commit 217bd56
Showing
7 changed files
with
692 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
DROP TABLE babel_4638_t1 | ||
DROP TABLE babel_4638_t2 | ||
DROP TABLE babel_4638_t3 | ||
DROP TABLE babel_4638_t4 | ||
DROP TABLE babel_4638_t5 | ||
DROP TABLE babel_4638_char_t1 | ||
DROP TABLE babel_4638_char_t2 | ||
DROP TABLE babel_4638_char_t3 | ||
DROP TABLE babel_4638_char_t4 | ||
DROP TABLE babel_4638_char_t5 | ||
DROP TABLE babel_4638_nchar_t1 | ||
DROP TABLE babel_4638_nchar_t2 | ||
DROP TABLE babel_4638_nchar_t3 | ||
DROP TABLE babel_4638_nchar_t4 | ||
DROP TABLE babel_4638_nchar_t5 | ||
GO |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
CREATE TABLE babel_4638_t1(a VARCHAR(10) COLLATE arabic_ci_as); | ||
CREATE TABLE babel_4638_t2(a VARCHAR(10) COLLATE chinese_prc_ci_as); | ||
CREATE TABLE babel_4638_t3(a VARCHAR(10) COLLATE japanese_ci_as); | ||
CREATE TABLE babel_4638_t4(a VARCHAR(10) COLLATE hebrew_ci_as); | ||
CREATE TABLE babel_4638_t5(a VARCHAR(10)); | ||
GO | ||
|
||
CREATE TABLE babel_4638_char_t1(a CHAR(10) COLLATE arabic_ci_as); | ||
CREATE TABLE babel_4638_char_t2(a CHAR(10) COLLATE chinese_prc_ci_as); | ||
CREATE TABLE babel_4638_char_t3(a CHAR(10) COLLATE japanese_ci_as); | ||
CREATE TABLE babel_4638_char_t4(a CHAR(10) COLLATE hebrew_ci_as); | ||
CREATE TABLE babel_4638_char_t5(a CHAR(10)); | ||
GO | ||
|
||
CREATE TABLE babel_4638_nchar_t1(a NCHAR(10) COLLATE arabic_ci_as); | ||
CREATE TABLE babel_4638_nchar_t2(a NCHAR(10) COLLATE chinese_prc_ci_as); | ||
CREATE TABLE babel_4638_nchar_t3(a NCHAR(10) COLLATE japanese_ci_as); | ||
CREATE TABLE babel_4638_nchar_t4(a NCHAR(10) COLLATE hebrew_ci_as); | ||
CREATE TABLE babel_4638_nchar_t5(a NCHAR(10)); | ||
GO | ||
|
||
INSERT INTO babel_4638_t1 VALUES('ح'), ('غ'), ('سسس'), ('للل'); | ||
INSERT INTO babel_4638_t2 VALUES('五'), ('九'), ('乙乙乙'), ('魚魚魚'); | ||
INSERT INTO babel_4638_t3 VALUES('あ'), ('九'), ('ちちち'), ('さささ'); | ||
INSERT INTO babel_4638_t4 VALUES('ב'), ('א'), ('קקק'), ('מממ'); | ||
INSERT INTO babel_4638_t5 VALUES('a'), ('🙂'), ('🙂🙂🙂'), ('さささ'); | ||
GO | ||
~~ROW COUNT: 4~~ | ||
|
||
~~ROW COUNT: 4~~ | ||
|
||
~~ROW COUNT: 4~~ | ||
|
||
~~ROW COUNT: 4~~ | ||
|
||
~~ROW COUNT: 4~~ | ||
|
Oops, something went wrong.