From ca4d6d1fcd5439c5544aacd90ab66cf448ad14e8 Mon Sep 17 00:00:00 2001 From: Dipesh Dhameliya Date: Fri, 29 Nov 2024 06:45:50 +0000 Subject: [PATCH 1/2] Temp changes --- test/JDBC/expected/collation_version_test.out | 71 +++++++++++++++++++ test/JDBC/input/collation_version_test.sql | 4 ++ test/JDBC/jdbc_schedule | 3 +- 3 files changed, 77 insertions(+), 1 deletion(-) create mode 100644 test/JDBC/expected/collation_version_test.out create mode 100644 test/JDBC/input/collation_version_test.sql diff --git a/test/JDBC/expected/collation_version_test.out b/test/JDBC/expected/collation_version_test.out new file mode 100644 index 0000000000..508ebee129 --- /dev/null +++ b/test/JDBC/expected/collation_version_test.out @@ -0,0 +1,71 @@ +select * from pg_collation where collname like 'chinese%'; +GO +~~START~~ +int#!#varchar#!#int#!#int#!#varchar#!#bit#!#int#!#text#!#text#!#text#!#text#!#text +16910#!#chinese_prc_ci_ai#!#16398#!#10#!#i#!#0#!#-1#!##!##!#zh-CN-u-ks-level1#!##!#58.0.0.50 +16909#!#chinese_prc_ci_as#!#16398#!#10#!#i#!#0#!#-1#!##!##!#zh-CN-u-ks-level2#!##!#58.0.0.50 +16908#!#chinese_prc_cs_as#!#16398#!#10#!#i#!#1#!#-1#!##!##!#zh-CN#!##!#58.0.0.50 +~~END~~ + +select * from pg_collation where collname like 'bbf_%'; +GO +~~START~~ +int#!#varchar#!#int#!#int#!#varchar#!#bit#!#int#!#text#!#text#!#text#!#text#!#text +16852#!#bbf_unicode_bin2#!#16398#!#10#!#c#!#1#!#-1#!#C#!#C#!##!##!# +16864#!#bbf_unicode_cp1250_ci_ai#!#16398#!#10#!#i#!#0#!#-1#!##!##!#und-u-ks-level1#!##!#58.0.6.50 +16863#!#bbf_unicode_cp1250_ci_as#!#16398#!#10#!#i#!#0#!#-1#!##!##!#und-u-ks-level2#!##!#58.0.6.50 +16865#!#bbf_unicode_cp1250_cs_ai#!#16398#!#10#!#i#!#0#!#-1#!##!##!#und-u-kc-true-kf-upper-ks-level1#!##!#58.0.6.50 +16866#!#bbf_unicode_cp1250_cs_as#!#16398#!#10#!#i#!#1#!#-1#!##!##!#und-u-ks-level3#!##!#58.0.6.50 +16869#!#bbf_unicode_cp1251_ci_ai#!#16398#!#10#!#i#!#0#!#-1#!##!##!#und-u-ks-level1#!##!#58.0.6.50 +16868#!#bbf_unicode_cp1251_ci_as#!#16398#!#10#!#i#!#0#!#-1#!##!##!#und-u-ks-level2#!##!#58.0.6.50 +16870#!#bbf_unicode_cp1251_cs_ai#!#16398#!#10#!#i#!#0#!#-1#!##!##!#und-u-kc-true-kf-upper-ks-level1#!##!#58.0.6.50 +16871#!#bbf_unicode_cp1251_cs_as#!#16398#!#10#!#i#!#1#!#-1#!##!##!#und-u-ks-level3#!##!#58.0.6.50 +16874#!#bbf_unicode_cp1253_ci_ai#!#16398#!#10#!#i#!#0#!#-1#!##!##!#und-u-ks-level1#!##!#58.0.6.50 +16873#!#bbf_unicode_cp1253_ci_as#!#16398#!#10#!#i#!#0#!#-1#!##!##!#und-u-ks-level2#!##!#58.0.6.50 +16875#!#bbf_unicode_cp1253_cs_ai#!#16398#!#10#!#i#!#0#!#-1#!##!##!#und-u-kc-true-kf-upper-ks-level1#!##!#58.0.6.50 +16876#!#bbf_unicode_cp1253_cs_as#!#16398#!#10#!#i#!#1#!#-1#!##!##!#und-u-ks-level3#!##!#58.0.6.50 +16879#!#bbf_unicode_cp1254_ci_ai#!#16398#!#10#!#i#!#0#!#-1#!##!##!#und-u-ks-level1#!##!#58.0.6.50 +16878#!#bbf_unicode_cp1254_ci_as#!#16398#!#10#!#i#!#0#!#-1#!##!##!#und-u-ks-level2#!##!#58.0.6.50 +16880#!#bbf_unicode_cp1254_cs_ai#!#16398#!#10#!#i#!#0#!#-1#!##!##!#und-u-kc-true-kf-upper-ks-level1#!##!#58.0.6.50 +16881#!#bbf_unicode_cp1254_cs_as#!#16398#!#10#!#i#!#1#!#-1#!##!##!#und-u-ks-level3#!##!#58.0.6.50 +16884#!#bbf_unicode_cp1255_ci_ai#!#16398#!#10#!#i#!#0#!#-1#!##!##!#und-u-ks-level1#!##!#58.0.6.50 +16883#!#bbf_unicode_cp1255_ci_as#!#16398#!#10#!#i#!#0#!#-1#!##!##!#und-u-ks-level2#!##!#58.0.6.50 +16885#!#bbf_unicode_cp1255_cs_ai#!#16398#!#10#!#i#!#0#!#-1#!##!##!#und-u-kc-true-kf-upper-ks-level1#!##!#58.0.6.50 +16886#!#bbf_unicode_cp1255_cs_as#!#16398#!#10#!#i#!#1#!#-1#!##!##!#und-u-ks-level3#!##!#58.0.6.50 +16889#!#bbf_unicode_cp1256_ci_ai#!#16398#!#10#!#i#!#0#!#-1#!##!##!#und-u-ks-level1#!##!#58.0.6.50 +16888#!#bbf_unicode_cp1256_ci_as#!#16398#!#10#!#i#!#0#!#-1#!##!##!#und-u-ks-level2#!##!#58.0.6.50 +16890#!#bbf_unicode_cp1256_cs_ai#!#16398#!#10#!#i#!#0#!#-1#!##!##!#und-u-kc-true-kf-upper-ks-level1#!##!#58.0.6.50 +16891#!#bbf_unicode_cp1256_cs_as#!#16398#!#10#!#i#!#1#!#-1#!##!##!#und-u-ks-level3#!##!#58.0.6.50 +16894#!#bbf_unicode_cp1257_ci_ai#!#16398#!#10#!#i#!#0#!#-1#!##!##!#und-u-ks-level1#!##!#58.0.6.50 +16893#!#bbf_unicode_cp1257_ci_as#!#16398#!#10#!#i#!#0#!#-1#!##!##!#und-u-ks-level2#!##!#58.0.6.50 +16895#!#bbf_unicode_cp1257_cs_ai#!#16398#!#10#!#i#!#0#!#-1#!##!##!#und-u-kc-true-kf-upper-ks-level1#!##!#58.0.6.50 +16896#!#bbf_unicode_cp1257_cs_as#!#16398#!#10#!#i#!#1#!#-1#!##!##!#und-u-ks-level3#!##!#58.0.6.50 +16899#!#bbf_unicode_cp1258_ci_ai#!#16398#!#10#!#i#!#0#!#-1#!##!##!#und-u-ks-level1#!##!#58.0.6.50 +16898#!#bbf_unicode_cp1258_ci_as#!#16398#!#10#!#i#!#0#!#-1#!##!##!#und-u-ks-level2#!##!#58.0.6.50 +16900#!#bbf_unicode_cp1258_cs_ai#!#16398#!#10#!#i#!#0#!#-1#!##!##!#und-u-kc-true-kf-upper-ks-level1#!##!#58.0.6.50 +16901#!#bbf_unicode_cp1258_cs_as#!#16398#!#10#!#i#!#1#!#-1#!##!##!#und-u-ks-level3#!##!#58.0.6.50 +16859#!#bbf_unicode_cp1_ci_ai#!#16398#!#10#!#i#!#0#!#-1#!##!##!#und-u-ks-level1#!##!#58.0.6.50 +16858#!#bbf_unicode_cp1_ci_as#!#16398#!#10#!#i#!#0#!#-1#!##!##!#und-u-ks-level2#!##!#58.0.6.50 +16860#!#bbf_unicode_cp1_cs_ai#!#16398#!#10#!#i#!#0#!#-1#!##!##!#und-u-kc-true-kf-upper-ks-level1#!##!#58.0.6.50 +16861#!#bbf_unicode_cp1_cs_as#!#16398#!#10#!#i#!#1#!#-1#!##!##!#und-u-ks-level3#!##!#58.0.6.50 +16904#!#bbf_unicode_cp874_ci_ai#!#16398#!#10#!#i#!#0#!#-1#!##!##!#und-u-ks-level1#!##!#58.0.6.50 +16903#!#bbf_unicode_cp874_ci_as#!#16398#!#10#!#i#!#0#!#-1#!##!##!#und-u-ks-level2#!##!#58.0.6.50 +16905#!#bbf_unicode_cp874_cs_ai#!#16398#!#10#!#i#!#0#!#-1#!##!##!#und-u-kc-true-kf-upper-ks-level1#!##!#58.0.6.50 +16906#!#bbf_unicode_cp874_cs_as#!#16398#!#10#!#i#!#1#!#-1#!##!##!#und-u-ks-level3#!##!#58.0.6.50 +16854#!#bbf_unicode_general_ci_ai#!#16398#!#10#!#i#!#0#!#-1#!##!##!#und-u-ks-level1#!##!#58.0.6.50 +16853#!#bbf_unicode_general_ci_as#!#16398#!#10#!#i#!#0#!#-1#!##!##!#und-u-ks-level2#!##!#58.0.6.50 +16855#!#bbf_unicode_general_cs_ai#!#16398#!#10#!#i#!#0#!#-1#!##!##!#und-u-kc-true-kf-upper-ks-level1#!##!#58.0.6.50 +16856#!#bbf_unicode_general_cs_as#!#16398#!#10#!#i#!#1#!#-1#!##!##!#und-u-ks-level3#!##!#58.0.6.50 +16857#!#bbf_unicode_general_pref_cs_as#!#16398#!#10#!#i#!#1#!#-1#!##!##!#und-u-kf-upper-ks-level3#!##!#58.0.6.50 +16867#!#bbf_unicode_pref_cp1250_cs_as#!#16398#!#10#!#i#!#1#!#-1#!##!##!#und-u-kf-upper-ks-level3#!##!#58.0.6.50 +16872#!#bbf_unicode_pref_cp1251_cs_as#!#16398#!#10#!#i#!#1#!#-1#!##!##!#und-u-kf-upper-ks-level3#!##!#58.0.6.50 +16877#!#bbf_unicode_pref_cp1253_cs_as#!#16398#!#10#!#i#!#1#!#-1#!##!##!#und-u-kf-upper-ks-level3#!##!#58.0.6.50 +16882#!#bbf_unicode_pref_cp1254_cs_as#!#16398#!#10#!#i#!#1#!#-1#!##!##!#und-u-kf-upper-ks-level3#!##!#58.0.6.50 +16887#!#bbf_unicode_pref_cp1255_cs_as#!#16398#!#10#!#i#!#1#!#-1#!##!##!#und-u-kf-upper-ks-level3#!##!#58.0.6.50 +16892#!#bbf_unicode_pref_cp1256_cs_as#!#16398#!#10#!#i#!#1#!#-1#!##!##!#und-u-kf-upper-ks-level3#!##!#58.0.6.50 +16897#!#bbf_unicode_pref_cp1257_cs_as#!#16398#!#10#!#i#!#1#!#-1#!##!##!#und-u-kf-upper-ks-level3#!##!#58.0.6.50 +16902#!#bbf_unicode_pref_cp1258_cs_as#!#16398#!#10#!#i#!#1#!#-1#!##!##!#und-u-kf-upper-ks-level3#!##!#58.0.6.50 +16862#!#bbf_unicode_pref_cp1_cs_as#!#16398#!#10#!#i#!#1#!#-1#!##!##!#und-u-kf-upper-ks-level3#!##!#58.0.6.50 +16907#!#bbf_unicode_pref_cp874_cs_as#!#16398#!#10#!#i#!#1#!#-1#!##!##!#und-u-kf-upper-ks-level3#!##!#58.0.6.50 +~~END~~ + diff --git a/test/JDBC/input/collation_version_test.sql b/test/JDBC/input/collation_version_test.sql new file mode 100644 index 0000000000..3edc986c2c --- /dev/null +++ b/test/JDBC/input/collation_version_test.sql @@ -0,0 +1,4 @@ +select * from pg_collation where collname like 'chinese%'; +GO +select * from pg_collation where collname like 'bbf_%'; +GO diff --git a/test/JDBC/jdbc_schedule b/test/JDBC/jdbc_schedule index d9897e0367..067a934f8b 100644 --- a/test/JDBC/jdbc_schedule +++ b/test/JDBC/jdbc_schedule @@ -8,7 +8,8 @@ # new line # 6. If you want the framework to not run certain files, use: ignore#!# -all +# all +collation_version_test ignore#!#BABEL-1435 ignore#!#BABEL-1446 From eb969068fc0c585bb5853e322285530d9172ee9f Mon Sep 17 00:00:00 2001 From: Dipesh Dhameliya Date: Fri, 29 Nov 2024 06:50:44 +0000 Subject: [PATCH 2/2] Additional test --- test/JDBC/input/collation_version_test.sql | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/test/JDBC/input/collation_version_test.sql b/test/JDBC/input/collation_version_test.sql index 3edc986c2c..66f3f775de 100644 --- a/test/JDBC/input/collation_version_test.sql +++ b/test/JDBC/input/collation_version_test.sql @@ -1,4 +1,15 @@ select * from pg_collation where collname like 'chinese%'; GO +create table testing5(c1 varchar(20) COLLATE SQL_Latin1_General_CP1_CS_AS); +GO +TRUNCATE TABLE testing5 +GO +insert into testing5 values ('JONES'); +insert into testing5 values ('JoneS'); +insert into testing5 values ('abcD'); +insert into testing5 values ('äbĆD'); +GO +SELECT * FROM testing5 where c1 COLLATE Chinese_PRC_CI_AS like 'jo%' ; +GO select * from pg_collation where collname like 'bbf_%'; GO