From f9358c2b28a1773d0e800089a991d2a813e850d8 Mon Sep 17 00:00:00 2001 From: Rohit Bhagat Date: Fri, 29 Dec 2023 11:39:40 +0000 Subject: [PATCH] updated different expected output of some tests in chinese_prc_ci_as server collation Signed-off-by: Rohit Bhagat --- .../BABEL-3392-vu-verify.out | 2099 +++++++++++++++++ .../chinese_prc_ci_as/BABEL-LIKE2ILIKE.out | 13 +- .../ISC-Domains-vu-verify.out | 30 +- .../chinese_prc_ci_as/babel_collection.out | 9 +- .../chinese_prc_ci_as/like_expression.out | 1 + 5 files changed, 2139 insertions(+), 13 deletions(-) create mode 100644 test/JDBC/expected/non_default_server_collation/chinese_prc_ci_as/BABEL-3392-vu-verify.out diff --git a/test/JDBC/expected/non_default_server_collation/chinese_prc_ci_as/BABEL-3392-vu-verify.out b/test/JDBC/expected/non_default_server_collation/chinese_prc_ci_as/BABEL-3392-vu-verify.out new file mode 100644 index 0000000000..664c12983f --- /dev/null +++ b/test/JDBC/expected/non_default_server_collation/chinese_prc_ci_as/BABEL-3392-vu-verify.out @@ -0,0 +1,2099 @@ +SELECT * FROM babel3392_v1 ORDER BY 1; +GO +~~START~~ +char + +1 +~~END~~ + + +SELECT * FROM babel3392_v2 ORDER BY 1; +GO +~~START~~ +nchar +1 +ΘЖऌฒ +~~END~~ + + +SELECT * FROM babel3392_v3 ORDER BY 1; +GO +~~START~~ +char + +1 +~~END~~ + + +SELECT babel3392_v1.* , babel3392_v2.*, babel3392_v3.* FROM babel3392_v1, babel3392_v2, babel3392_v3 +UNION ALL +SELECT babel3392_v2.* , babel3392_v3.*, babel3392_v1.* FROM babel3392_v1, babel3392_v2, babel3392_v3 +ORDER BY 1, 2, 3 +GO +~~START~~ +nchar#!#nchar#!#char +#!#1 #!# +#!#1 #!#1 +#!#ΘЖऌฒ #!# +#!#ΘЖऌฒ #!#1 +1 #!##!# +1 #!##!#1 +1 #!#1 #!# +1 #!#1 #!# +1 #!#1 #!#1 +1 #!#1 #!#1 +1 #!#ΘЖऌฒ #!# +1 #!#ΘЖऌฒ #!#1 +ΘЖऌฒ #!##!# +ΘЖऌฒ #!##!#1 +ΘЖऌฒ #!#1 #!# +ΘЖऌฒ #!#1 #!#1 +~~END~~ + + +SELECT NULL, NULL +UNION ALL +SELECT * FROM (SELECT babel3392_v1.* , babel3392_v2.* FROM babel3392_v1, babel3392_v2) t1 +ORDER BY 1, 2 +GO +~~START~~ +char#!#nchar +#!# +#!#1 +#!#ΘЖऌฒ +1 #!#1 +1 #!#ΘЖऌฒ +~~END~~ + + +DROP view babel3392_v1; +DROP view babel3392_v2; +DROP view babel3392_v3; +GO + +SELECT CAST('1' AS CHAR(10)) AS Col1 +UNION +SELECT NULL AS Col1 +ORDER BY 1 +GO +~~START~~ +char + +1 +~~END~~ + + +SELECT NULL AS Col1 +UNION +SELECT CAST('1' AS CHAR(10)) AS Col1 +ORDER BY 1 +GO +~~START~~ +char + +1 +~~END~~ + + +SELECT CAST('1' AS NCHAR(10)) AS Col1 +UNION +SELECT NULL AS Col1 +ORDER BY 1 +GO +~~START~~ +nchar + +1 +~~END~~ + + +SELECT NULL AS Col1 +UNION +SELECT CAST('1' AS NCHAR(10)) AS Col1 +ORDER BY 1 +GO +~~START~~ +nchar + +1 +~~END~~ + + +SELECT CAST(1 AS BINARY(10)) AS Col1 +UNION +SELECT NULL AS Col1 +ORDER BY 1 +GO +~~START~~ +binary + +00000000000000000001 +~~END~~ + + +SELECT NULL AS Col1 +UNION +SELECT CAST(1 AS BINARY(10)) AS Col1 +ORDER BY 1 +GO +~~START~~ +binary + +00000000000000000001 +~~END~~ + + +SELECT CAST(1 AS VARCHAR(10)) AS Col1 +UNION +SELECT NULL AS Col1 +ORDER BY 1 +GO +~~START~~ +varchar + +1 +~~END~~ + + +SELECT NULL AS Col1 +UNION +SELECT CAST(1 AS VARCHAR(10)) AS Col1 +ORDER BY 1 +GO +~~START~~ +varchar + +1 +~~END~~ + + +SELECT CAST(N'ΘЖऌฒ' AS NVARCHAR(10)) AS Col1 +UNION +SELECT NULL AS Col1 +ORDER BY 1 +GO +~~START~~ +nvarchar + +ΘЖऌฒ +~~END~~ + + +SELECT NULL AS Col1 +UNION +SELECT CAST(N'ΘЖऌฒ' AS NVARCHAR(10)) AS Col1 +ORDER BY 1 +GO +~~START~~ +nvarchar + +ΘЖऌฒ +~~END~~ + + +SELECT CAST(1 AS VARCHAR(10)) AS Col1 +UNION +SELECT CAST('2' AS CHAR(15)) +ORDER BY 1 +GO +~~START~~ +varchar +1 +2 +~~END~~ + + +SELECT CAST('2' AS CHAR(15)) +UNION +SELECT CAST(1 AS VARCHAR(10)) AS Col1 +ORDER BY 1 +GO +~~START~~ +varchar +1 +2 +~~END~~ + + +SELECT CAST(N'ΘЖऌฒ' AS NVARCHAR(10)) AS Col1 +UNION +SELECT CAST('2' AS CHAR(15)) +ORDER BY 1 +GO +~~START~~ +nvarchar +2 +ΘЖऌฒ +~~END~~ + + +SELECT CAST('2' AS CHAR(15)) +UNION +SELECT CAST(N'ΘЖऌฒ' AS NVARCHAR(10)) AS Col1 +ORDER BY 1 +GO +~~START~~ +nvarchar +2 +ΘЖऌฒ +~~END~~ + + +SELECT CAST(1 AS VARCHAR(10)) AS Col1 +UNION +SELECT CAST(N'Жऌ' AS NCHAR(15)) +ORDER BY 1 +GO +~~START~~ +nchar +1 +Жऌ +~~END~~ + + +SELECT CAST('2' AS CHAR(15)) +UNION +SELECT CAST(N'Жऌ' AS NCHAR(15)) +ORDER BY 1 +GO +~~START~~ +nchar +2 +Жऌ +~~END~~ + + +SELECT CAST(N'ΘЖऌฒ' AS NVARCHAR(10)) AS Col1 +UNION +SELECT CAST(N'Жऌ' AS NCHAR(15)) +ORDER BY 1 +GO +~~START~~ +nvarchar +ΘЖऌฒ +Жऌ +~~END~~ + + +SELECT CAST(N'Жऌ' AS NCHAR(15)) +UNION +SELECT CAST(N'ΘЖऌฒ' AS NVARCHAR(10)) AS Col1 +ORDER BY 1 +GO +~~START~~ +nvarchar +ΘЖऌฒ +Жऌ +~~END~~ + + +SELECT NULL +UNION +SELECT CAST(1 AS VARCHAR(10)) AS Col1 +UNION +SELECT CAST(N'Жऌ' AS NCHAR(15)) +ORDER BY 1 +GO +~~START~~ +nchar + +1 +Жऌ +~~END~~ + + +SELECT CAST('2' AS CHAR(15)) +UNION +SELECT CAST(N'Жऌ' AS NCHAR(15)) +UNION +SELECT NULL +ORDER BY 1 +GO +~~START~~ +nchar + +2 +Жऌ +~~END~~ + + +SELECT NULL +UNION +SELECT CAST(N'ΘЖऌฒ' AS NVARCHAR(10)) +UNION +SELECT CAST(N'Жऌ' AS NCHAR(15)) +ORDER BY 1 +GO +~~START~~ +nvarchar + +ΘЖऌฒ +Жऌ +~~END~~ + + +SELECT CAST(N'Жऌ' AS NCHAR(15)) +UNION +SELECT NULL +UNION +SELECT CAST(N'ΘЖऌฒ' AS NVARCHAR(10)) +ORDER BY 1 +GO +~~START~~ +nvarchar + +ΘЖऌฒ +Жऌ +~~END~~ + + +SELECT CAST(1 AS CHAR(1)) AS Col1 +UNION +SELECT NULL AS Col1 +ORDER BY 1 +GO +~~START~~ +char + +1 +~~END~~ + + +SELECT CAST('1' AS CHAR(255)) AS Col1 +UNION +SELECT NULL AS Col1 +ORDER BY 1 +GO +~~START~~ +char + +1 +~~END~~ + + +SELECT CAST('1' AS CHAR(15)) AS Col1 +UNION +SELECT CAST('2' AS CHAR(10)) AS Col1 +ORDER BY 1 +GO +~~START~~ +char +1 +2 +~~END~~ + + +SELECT CAST('1' AS CHAR(10)) AS Col1 +UNION +SELECT CAST('2' AS CHAR(15)) AS Col1 +ORDER BY 1 +GO +~~START~~ +char +1 +2 +~~END~~ + + +SELECT CAST('1' AS NCHAR(15)) AS Col1 +UNION +SELECT CAST('2' AS NCHAR(10)) AS Col1 +ORDER BY 1 +GO +~~START~~ +nchar +1 +2 +~~END~~ + + +SELECT CAST('1' AS NCHAR(10)) AS Col1 +UNION +SELECT CAST('2' AS NCHAR(15)) AS Col1 +ORDER BY 1 +GO +~~START~~ +nchar +1 +2 +~~END~~ + + +SELECT CAST(N'ΘЖऌฒ' AS NCHAR(10)) AS Col1 +UNION +SELECT NULL AS Col1 +ORDER BY 1 +GO +~~START~~ +nchar + +ΘЖऌฒ +~~END~~ + + +SELECT NULL AS Col1 +UNION +SELECT CAST(N'ΘЖऌฒ' AS NCHAR(10)) AS Col1 +ORDER BY 1 +GO +~~START~~ +nchar + +ΘЖऌฒ +~~END~~ + + +SELECT CAST(1 AS BINARY(4)) AS Col1 +UNION +SELECT CAST(2 AS BINARY(8)) AS Col1 +ORDER BY 1 +GO +~~START~~ +binary +0000000000000002 +0000000100000000 +~~END~~ + + +SELECT CAST(1 AS BINARY(4)) AS Col1 +UNION +SELECT CAST(2 AS BINARY(8)) AS Col1 +ORDER BY 1 +GO +~~START~~ +binary +0000000000000002 +0000000100000000 +~~END~~ + + +SELECT CAST('1' AS CHAR(4)) AS Col1 +UNION +SELECT CAST(N'ΘЖऌฒ' AS NCHAR(8)) AS Col1 +ORDER BY 1 +GO +~~START~~ +nchar +1 +ΘЖऌฒ +~~END~~ + + +SELECT CAST(N'ΘЖऌฒ' AS NCHAR(8)) AS Col1 +UNION +SELECT CAST('1' AS CHAR(4)) AS Col1 +ORDER BY 1 +GO +~~START~~ +nchar +1 +ΘЖऌฒ +~~END~~ + + +SELECT CAST('1' AS CHAR(4)) +INTERSECT +SELECT CAST('1' AS CHAR(8)) +ORDER BY 1 +GO +~~START~~ +char +1 +~~END~~ + + +SELECT CAST('1' AS CHAR(8)) +INTERSECT +SELECT CAST('1' AS CHAR(4)) +ORDER BY 1 +GO +~~START~~ +char +1 +~~END~~ + + +SELECT CAST('1' AS CHAR(8)) +INTERSECT +SELECT CAST(N'1' AS NCHAR(4)) +ORDER BY 1 +GO +~~START~~ +nchar +1 +~~END~~ + + +SELECT CAST('1' AS CHAR(4)) +EXCEPT +SELECT CAST('1' AS CHAR(8)) +ORDER BY 1 +GO +~~START~~ +char +~~END~~ + + +SELECT CAST('1' AS CHAR(8)) +EXCEPT +SELECT CAST('1' AS CHAR(4)) +ORDER BY 1 +GO +~~START~~ +char +~~END~~ + + +SELECT CAST('1' AS NCHAR(8)) +EXCEPT +SELECT CAST('2' AS CHAR(4)) +ORDER BY 1 +GO +~~START~~ +nchar +1 +~~END~~ + + +-- Multiple Unions -- +SELECT CAST('1' AS CHAR(8)) +UNION +SELECT NULL +UNION +SELECT NULL +ORDER BY 1 +GO +~~START~~ +char + +1 +~~END~~ + + +SELECT NULL +UNION +SELECT CAST('1' AS CHAR(8)) +UNION +SELECT NULL +ORDER BY 1 +GO +~~START~~ +char + +1 +~~END~~ + + +SELECT NULL +UNION +SELECT NULL +GO +~~START~~ +int + +~~END~~ + + +SELECT NULL +UNION ALL +SELECT NULL +GO +~~START~~ +int + + +~~END~~ + + +SELECT NULL +UNION +SELECT NULL +UNION +SELECT CAST('1' AS CHAR(8)) +ORDER BY 1 +GO +~~START~~ +char + +1 +~~END~~ + + +SELECT NULL +UNION +SELECT NULL +UNION +SELECT CAST(N'ΘЖऌฒ' AS NCHAR(8)) +ORDER BY 1 +GO +~~START~~ +nchar + +ΘЖऌฒ +~~END~~ + + +SELECT CAST('2' AS CHAR(16)) +UNION +SELECT CAST('1' AS CHAR(8)) +UNION +SELECT NULL +ORDER BY 1 +GO +~~START~~ +char + +1 +2 +~~END~~ + + +SELECT CAST('2' AS CHAR(16)) +UNION +SELECT CAST('1' AS NCHAR(8)) +UNION +SELECT NULL +ORDER BY 1 +GO +~~START~~ +nchar + +1 +2 +~~END~~ + + +SELECT CAST('2' AS NCHAR(16)) +UNION +SELECT CAST('1' AS NCHAR(8)) +UNION +SELECT NULL +ORDER BY 1 +GO +~~START~~ +nchar + +1 +2 +~~END~~ + + +SELECT CAST('2' AS NCHAR(16)) +UNION ALL +SELECT CAST('1' AS NCHAR(8)) +UNION ALL +SELECT NULL +ORDER BY 1 +GO +~~START~~ +nchar + +1 +2 +~~END~~ + + +SELECT NULL +UNION ALL +SELECT NULL +UNION ALL +SELECT CAST(N'ΘЖऌฒ' AS NCHAR(15)) +ORDER BY 1 +GO +~~START~~ +nchar + + +ΘЖऌฒ +~~END~~ + + +SELECT CAST('1' AS NCHAR(16)) +INTERSECT +SELECT CAST('1' AS NCHAR(8)) +INTERSECT +SELECT CAST('1' AS NCHAR(4)) +ORDER BY 1 +GO +~~START~~ +nchar +1 +~~END~~ + + +SELECT CAST('1' AS NCHAR(16)) +INTERSECT +SELECT CAST('2' AS NCHAR(8)) +INTERSECT +SELECT CAST('1' AS NCHAR(4)) +ORDER BY 1 +GO +~~START~~ +nchar +~~END~~ + + +SELECT NULL +INTERSECT +SELECT NULL +INTERSECT +SELECT CAST(N'ΘЖऌฒ' AS NCHAR(15)) +ORDER BY 1 +GO +~~START~~ +nchar +~~END~~ + + +SELECT set_config('babelfishpg_tsql.explain_costs', 'off', false) +go +~~START~~ +text +off +~~END~~ + + +SET babelfish_showplan_all ON +GO + +SELECT CAST(N'ΘЖऌฒ' AS NCHAR(8)) AS Col1 +UNION +SELECT CAST('1' AS CHAR(4)) AS Col1 +ORDER BY 1 +GO +~~START~~ +text +Query Text: SELECT CAST(N'ΘЖ??' AS NCHAR(8)) AS Col1 +UNION +SELECT CAST('1' AS CHAR(4)) AS Col1 +ORDER BY 1 +Sort + Sort Key: ('ΘЖ?? '::"nchar"(8)) NULLS FIRST + -> Unique + -> Sort + Sort Key: ('ΘЖ?? '::"nchar"(8)) + -> Append + -> Result + -> Result +~~END~~ + + +SELECT NULL +UNION +SELECT NULL +UNION +SELECT CAST(N'ΘЖऌฒ' AS NVARCHAR(12)) AS Col1 +ORDER BY 1 +GO +~~START~~ +text +Query Text: SELECT NULL +UNION +SELECT NULL +UNION +SELECT CAST(N'ΘЖ??' AS NVARCHAR(12)) AS Col1 +ORDER BY 1 +Sort + Sort Key: (NULL::nvarchar(12)) NULLS FIRST + -> HashAggregate + Group Key: (NULL::nvarchar(12)) + -> Append + -> Result + -> Result + -> Result +~~END~~ + + +SELECT cast('foo' as CHAR(3)) +UNION +SELECT 'longer string' +ORDER BY 1 +GO +~~START~~ +text +Query Text: SELECT cast('foo' as CHAR(3)) +UNION +SELECT 'longer string' +ORDER BY 1 +Sort + Sort Key: ('foo'::"varchar"(13)) NULLS FIRST + -> Unique + -> Sort + Sort Key: ('foo'::"varchar"(13)) + -> Append + -> Result + -> Result +~~END~~ + + +SET babelfish_showplan_all OFF +GO + +CREATE TABLE babel3392_nchar_tbl(a NCHAR(20)) +GO + +INSERT INTO babel3392_nchar_tbl (a) + SELECT CAST(N'ΘЖऌฒ' AS NCHAR(10)) AS Col1 + UNION + SELECT NULL AS Col1 + ORDER BY 1 +GO +~~ROW COUNT: 2~~ + + +DROP TABLE babel3392_nchar_tbl +GO + +-- Should error +WITH babel3392_recursive_cte(a) +AS ( + SELECT NULL + UNION ALL + SELECT CAST(a + 'a' AS CHAR(10)) from babel3392_recursive_cte where a != 'aaaaa' +) +SELECT a from babel3392_recursive_cte order by a +GO +~~ERROR (Code: 33557097)~~ + +~~ERROR (Message: recursive query "babel3392_recursive_cte" column 1 has type text in non-recursive term but type bpchar(10) overall)~~ + + +WITH babel3392_recursive_cte(a) +AS ( + SELECT 'a' + UNION ALL + SELECT CAST(a + 'a' AS CHAR(10)) from babel3392_recursive_cte where a != 'aaaaa' +) +SELECT a from babel3392_recursive_cte order by a +GO +~~ERROR (Code: 33557097)~~ + +~~ERROR (Message: recursive query "babel3392_recursive_cte" column 1 has type text in non-recursive term but type "varchar"(10) overall)~~ + + +-- COALESCE / ISNULL +SELECT ISNULL(null, cast(N'ΘЖऌฒ' as NCHAR(15))) +GO +~~START~~ +nchar +ΘЖऌฒ +~~END~~ + + +-- BABEL-4157 +SELECT tbl.babel4157_c1 INTO babel4157_tbl FROM ( + SELECT 'string' AS babel4157_c1 + UNION + SELECT CAST('varchar' AS VARCHAR(40)) AS babel4157_c1 +) AS tbl +ORDER BY 1 +GO + +SELECT * FROM babel4157_tbl ORDER BY 1 +GO +~~START~~ +varchar +string +varchar +~~END~~ + + +SELECT name, max_length FROM sys.columns WHERE name = 'babel4157_c1' +GO +~~START~~ +varchar#!#smallint +babel4157_c1#!#40 +~~END~~ + + +DROP TABLE babel4157_tbl +GO + +SELECT tbl.babel4157_c1 INTO babel4157_tbl FROM ( + SELECT CAST('varchar' AS VARCHAR(40)) AS babel4157_c1 + UNION + SELECT 'string' AS babel4157_c1 +) AS tbl +ORDER BY 1 +GO + +SELECT * FROM babel4157_tbl ORDER BY 1 +GO +~~START~~ +varchar +string +varchar +~~END~~ + + +SELECT name, max_length FROM sys.columns WHERE name = 'babel4157_c1' +GO +~~START~~ +varchar#!#smallint +babel4157_c1#!#40 +~~END~~ + + +DROP TABLE babel4157_tbl +GO + +SELECT tbl.babel4157_c1 INTO babel4157_tbl FROM ( + SELECT 'string' AS babel4157_c1 + UNION + SELECT CAST('varchar' AS VARCHAR(MAX)) AS babel4157_c1 +) AS tbl +ORDER BY 1 +GO + +SELECT * FROM babel4157_tbl ORDER BY 1 +GO +~~START~~ +varchar +string +varchar +~~END~~ + + +SELECT name, max_length FROM sys.columns WHERE name = 'babel4157_c1' +GO +~~START~~ +varchar#!#smallint +babel4157_c1#!#-1 +~~END~~ + + +DROP TABLE babel4157_tbl +GO + +SELECT tbl.babel4157_c1 INTO babel4157_tbl FROM ( + SELECT CAST(N'ΘЖऌฒ' AS NVARCHAR(40)) AS babel4157_c1 + UNION + SELECT 'string' AS babel4157_c1 +) AS tbl +ORDER BY 1 +GO + +SELECT * FROM babel4157_tbl ORDER BY 1 +GO +~~START~~ +nvarchar +string +ΘЖऌฒ +~~END~~ + + +SELECT name, max_length FROM sys.columns WHERE name = 'babel4157_c1' +GO +~~START~~ +varchar#!#smallint +babel4157_c1#!#80 +~~END~~ + + +DROP TABLE babel4157_tbl +GO + +SELECT tbl.babel4157_c1 INTO babel4157_tbl FROM ( + SELECT 'string' AS babel4157_c1 + UNION + SELECT CAST(N'ΘЖऌฒ' AS NVARCHAR(40)) AS babel4157_c1 +) AS tbl +ORDER BY 1 +GO + +SELECT * FROM babel4157_tbl ORDER BY 1 +GO +~~START~~ +nvarchar +string +ΘЖऌฒ +~~END~~ + + +SELECT name, max_length FROM sys.columns WHERE name = 'babel4157_c1' +GO +~~START~~ +varchar#!#smallint +babel4157_c1#!#80 +~~END~~ + + +DROP TABLE babel4157_tbl +GO + +SELECT tbl.babel4157_c1 INTO babel4157_tbl FROM ( + SELECT CAST(N'ΘЖऌฒ' AS NVARCHAR(MAX)) AS babel4157_c1 + UNION + SELECT 'string' AS babel4157_c1 +) AS tbl +ORDER BY 1 +GO + +SELECT * FROM babel4157_tbl ORDER BY 1 +GO +~~START~~ +nvarchar +string +ΘЖऌฒ +~~END~~ + + +SELECT name, max_length FROM sys.columns WHERE name = 'babel4157_c1' +GO +~~START~~ +varchar#!#smallint +babel4157_c1#!#-1 +~~END~~ + + +DROP TABLE babel4157_tbl +GO + +CREATE TABLE babel4157_tbl2 (c1 varchar(40) not null); +go + +SELECT tbl.babel4157_c1 INTO babel4157_tbl FROM ( + SELECT 'string' AS babel4157_c1 + UNION + SELECT c1 from babel4157_tbl2 +) AS tbl +ORDER BY 1 +GO + +SELECT * FROM babel4157_tbl ORDER BY 1 +GO +~~START~~ +varchar +string +~~END~~ + + +SELECT name, max_length FROM sys.columns WHERE name = 'babel4157_c1' +GO +~~START~~ +varchar#!#smallint +babel4157_c1#!#40 +~~END~~ + + +DROP TABLE babel4157_tbl +DROP TABLE babel4157_tbl2 +GO + +CREATE TABLE babel4157_tbl2 (c1 nvarchar(40) not null); +go + +SELECT tbl.babel4157_c1 INTO babel4157_tbl FROM ( + SELECT N'ΘЖऌฒ' AS babel4157_c1 + UNION ALL + SELECT c1 from babel4157_tbl2 +) AS tbl +ORDER BY 1 +GO + +SELECT * FROM babel4157_tbl ORDER BY 1 +GO +~~START~~ +nvarchar +ΘЖऌฒ +~~END~~ + + +SELECT name, max_length FROM sys.columns WHERE name = 'babel4157_c1' +GO +~~START~~ +varchar#!#smallint +babel4157_c1#!#80 +~~END~~ + + +DROP TABLE babel4157_tbl +DROP TABLE babel4157_tbl2 +GO + +CREATE TABLE babel4157_tbl2 (c1 varchar(max) not null); +go + +SELECT tbl.babel4157_c1 INTO babel4157_tbl FROM ( + SELECT 'string' AS babel4157_c1 + UNION + SELECT c1 from babel4157_tbl2 +) AS tbl +ORDER BY 1 +GO + +SELECT * FROM babel4157_tbl ORDER BY 1 +GO +~~START~~ +varchar +string +~~END~~ + + +SELECT name, max_length FROM sys.columns WHERE name = 'babel4157_c1' +GO +~~START~~ +varchar#!#smallint +babel4157_c1#!#-1 +~~END~~ + + +DROP TABLE babel4157_tbl +DROP TABLE babel4157_tbl2 +GO + +CREATE TABLE babel4157_tbl2 (c1 varchar(max) not null); +go + +SELECT tbl.babel4157_c1 INTO babel4157_tbl FROM ( + SELECT CAST('string' AS VARCHAR(40)) AS babel4157_c1 + UNION ALL + SELECT c1 from babel4157_tbl2 +) AS tbl +ORDER BY 1 +GO + +SELECT * FROM babel4157_tbl ORDER BY 1 +GO +~~START~~ +varchar +string +~~END~~ + + +SELECT name, max_length FROM sys.columns WHERE name = 'babel4157_c1' +GO +~~START~~ +varchar#!#smallint +babel4157_c1#!#-1 +~~END~~ + + +DROP TABLE babel4157_tbl +DROP TABLE babel4157_tbl2 +GO + +CREATE TABLE babel4157_tbl2 (c1 nvarchar(max) not null); +go + +SELECT tbl.babel4157_c1 INTO babel4157_tbl FROM ( + SELECT N'ΘЖऌฒ' AS babel4157_c1 + UNION + SELECT c1 from babel4157_tbl2 +) AS tbl +ORDER BY 1 +GO + +SELECT * FROM babel4157_tbl ORDER BY 1 +GO +~~START~~ +nvarchar +ΘЖऌฒ +~~END~~ + + +SELECT name, max_length FROM sys.columns WHERE name = 'babel4157_c1' +GO +~~START~~ +varchar#!#smallint +babel4157_c1#!#-1 +~~END~~ + + +DROP TABLE babel4157_tbl +DROP TABLE babel4157_tbl2 +GO + +CREATE TABLE babel4157_tbl2 (c1 nvarchar(max) not null); +go + +SELECT tbl.babel4157_c1 INTO babel4157_tbl FROM ( + SELECT CAST(N'ΘЖऌฒ' AS NVARCHAR(40)) AS babel4157_c1 + UNION ALL + SELECT c1 from babel4157_tbl2 +) AS tbl +ORDER BY 1 +GO + +SELECT * FROM babel4157_tbl ORDER BY 1 +GO +~~START~~ +nvarchar +ΘЖऌฒ +~~END~~ + + +SELECT name, max_length FROM sys.columns WHERE name = 'babel4157_c1' +GO +~~START~~ +varchar#!#smallint +babel4157_c1#!#-1 +~~END~~ + + +DROP TABLE babel4157_tbl +DROP TABLE babel4157_tbl2 +GO + +SELECT tbl.babel4157_c1 INTO babel4157_tbl FROM ( + SELECT 'string' AS babel4157_c1 + UNION + SELECT CAST(N'ΘЖऌฒ' AS NCHAR(40)) AS babel4157_c1 +) AS tbl +ORDER BY 1 +GO + +SELECT * FROM babel4157_tbl ORDER BY 1 +GO +~~START~~ +nchar +string +ΘЖऌฒ +~~END~~ + + +SELECT name, max_length FROM sys.columns WHERE name = 'babel4157_c1' +GO +~~START~~ +varchar#!#smallint +babel4157_c1#!#80 +~~END~~ + + +DROP TABLE babel4157_tbl +GO + +SELECT tbl.babel4157_c1 INTO babel4157_tbl FROM ( + SELECT 'string' AS babel4157_c1 + UNION + SELECT CAST('char' AS CHAR(40)) AS babel4157_c1 +) AS tbl +ORDER BY 1 +GO + +SELECT * FROM babel4157_tbl ORDER BY 1 +GO +~~START~~ +varchar +char +string +~~END~~ + + +SELECT name, max_length FROM sys.columns WHERE name = 'babel4157_c1' +GO +~~START~~ +varchar#!#smallint +babel4157_c1#!#40 +~~END~~ + + +DROP TABLE babel4157_tbl +GO + +SELECT tbl.babel4157_c1 INTO babel4157_tbl FROM ( + SELECT CAST('char' AS CHAR(15)) AS babel4157_c1 + UNION + SELECT CAST(N'Жऌ' AS NCHAR(20)) AS babel4157_c1 +) AS tbl +ORDER BY 1 +GO + +SELECT * FROM babel4157_tbl ORDER BY 1 +GO +~~START~~ +nchar +char +Жऌ +~~END~~ + + +SELECT name, max_length FROM sys.columns WHERE name = 'babel4157_c1' +GO +~~START~~ +varchar#!#smallint +babel4157_c1#!#40 +~~END~~ + + +DROP TABLE babel4157_tbl +GO + +SELECT tbl.babel4157_c1 INTO babel4157_tbl FROM ( + SELECT CAST('char' AS CHAR(20)) AS babel4157_c1 + UNION + SELECT CAST('varchar' AS VARCHAR(15)) AS babel4157_c1 +) AS tbl +ORDER BY 1 +GO + +SELECT * FROM babel4157_tbl ORDER BY 1 +GO +~~START~~ +varchar +char +varchar +~~END~~ + + +SELECT name, max_length FROM sys.columns WHERE name = 'babel4157_c1' +GO +~~START~~ +varchar#!#smallint +babel4157_c1#!#20 +~~END~~ + + +DROP TABLE babel4157_tbl +GO + +SELECT tbl.babel4157_c1 INTO babel4157_tbl FROM ( + SELECT CAST('char' AS CHAR(20)) AS babel4157_c1 + UNION + SELECT CAST(N'Жऌ' AS NVARCHAR(15)) AS babel4157_c1 +) AS tbl +ORDER BY 1 +GO + +SELECT * FROM babel4157_tbl ORDER BY 1 +GO +~~START~~ +nvarchar +char +Жऌ +~~END~~ + + +SELECT name, max_length FROM sys.columns WHERE name = 'babel4157_c1' +GO +~~START~~ +varchar#!#smallint +babel4157_c1#!#40 +~~END~~ + + +DROP TABLE babel4157_tbl +GO + +SELECT tbl.babel4157_c1 INTO babel4157_tbl FROM ( + SELECT CAST('char' AS CHAR(20)) AS babel4157_c1 + UNION + SELECT CAST(N'Жऌ' AS NVARCHAR(MAX)) AS babel4157_c1 +) AS tbl +ORDER BY 1 +GO + +SELECT * FROM babel4157_tbl ORDER BY 1 +GO +~~START~~ +nvarchar +char +Жऌ +~~END~~ + + +SELECT name, max_length FROM sys.columns WHERE name = 'babel4157_c1' +GO +~~START~~ +varchar#!#smallint +babel4157_c1#!#-1 +~~END~~ + + +DROP TABLE babel4157_tbl +GO + +-- Currently gives wrong typmod, need to support nvarchar literals +SELECT tbl.babel4157_c1 INTO babel4157_tbl FROM ( + SELECT CAST('char' AS CHAR(20)) AS babel4157_c1 + UNION + SELECT N'Жऌ' AS babel4157_c1 +) AS tbl +ORDER BY 1 +GO + +SELECT * FROM babel4157_tbl ORDER BY 1 +GO +~~START~~ +nvarchar +char +Жऌ +~~END~~ + + +SELECT name, max_length FROM sys.columns WHERE name = 'babel4157_c1' +GO +~~START~~ +varchar#!#smallint +babel4157_c1#!#40 +~~END~~ + + +DROP TABLE babel4157_tbl +GO + +SELECT tbl.babel4157_c1 INTO babel4157_tbl FROM ( + SELECT CAST(N'Жऌ' AS NCHAR(20)) AS babel4157_c1 + UNION + SELECT CAST('varchar' AS VARCHAR(15)) AS babel4157_c1 +) AS tbl +ORDER BY 1 +GO + +SELECT * FROM babel4157_tbl ORDER BY 1 +GO +~~START~~ +nchar +varchar +Жऌ +~~END~~ + + +SELECT name, max_length FROM sys.columns WHERE name = 'babel4157_c1' +GO +~~START~~ +varchar#!#smallint +babel4157_c1#!#40 +~~END~~ + + +DROP TABLE babel4157_tbl +GO + +SELECT tbl.babel4157_c1 INTO babel4157_tbl FROM ( + SELECT CAST(N'Жऌ' AS NCHAR(20)) AS babel4157_c1 + UNION + SELECT CAST('nvarchar' AS NVARCHAR(15)) AS babel4157_c1 +) AS tbl +ORDER BY 1 +GO + +SELECT * FROM babel4157_tbl ORDER BY 1 +GO +~~START~~ +nvarchar +nvarchar +Жऌ +~~END~~ + + +SELECT name, max_length FROM sys.columns WHERE name = 'babel4157_c1' +GO +~~START~~ +varchar#!#smallint +babel4157_c1#!#40 +~~END~~ + + +DROP TABLE babel4157_tbl +GO + +SELECT tbl.babel4157_c1 INTO babel4157_tbl FROM ( + SELECT CAST('varchar' AS VARCHAR(15)) AS babel4157_c1 + UNION + SELECT CAST(N'Жऌ' AS NVARCHAR(20)) AS babel4157_c1 +) AS tbl +ORDER BY 1 +GO + +SELECT * FROM babel4157_tbl ORDER BY 1 +GO +~~START~~ +nvarchar +varchar +Жऌ +~~END~~ + + +SELECT name, max_length FROM sys.columns WHERE name = 'babel4157_c1' +GO +~~START~~ +varchar#!#smallint +babel4157_c1#!#40 +~~END~~ + + +DROP TABLE babel4157_tbl +GO + + +SELECT tbl.babel4157_c1 INTO babel4157_tbl FROM ( + SELECT cast(17 as binary(1)) AS babel4157_c1 + UNION + SELECT cast(10 as binary(2)) AS babel4157_c1 +) AS tbl +ORDER BY 1 +GO + +SELECT * FROM babel4157_tbl ORDER BY 1 +GO +~~START~~ +binary +000A +1100 +~~END~~ + + +SELECT name, max_length FROM sys.columns WHERE name = 'babel4157_c1' +GO +~~START~~ +varchar#!#smallint +babel4157_c1#!#2 +~~END~~ + + +DROP TABLE babel4157_tbl +GO + +SELECT tbl.babel4157_c1 INTO babel4157_tbl FROM ( + SELECT cast(11 as varbinary(1)) AS babel4157_c1 + UNION + SELECT cast(10 as varbinary(2)) AS babel4157_c1 +) AS tbl +ORDER BY 1 +GO + +SELECT * FROM babel4157_tbl ORDER BY 1 +GO +~~START~~ +varbinary +000A +0B +~~END~~ + + +SELECT name, max_length FROM sys.columns WHERE name = 'babel4157_c1' +GO +~~START~~ +varchar#!#smallint +babel4157_c1#!#2 +~~END~~ + + +DROP TABLE babel4157_tbl +GO + +SELECT tbl.babel4157_c1 INTO babel4157_tbl FROM ( + SELECT cast(11 as varbinary(1)) AS babel4157_c1 + UNION + SELECT cast(10 as varbinary(max)) AS babel4157_c1 +) AS tbl +ORDER BY 1 +GO + +SELECT * FROM babel4157_tbl ORDER BY 1 +GO +~~START~~ +varbinary +0000000A +0B +~~END~~ + + +SELECT name, max_length FROM sys.columns WHERE name = 'babel4157_c1' +GO +~~START~~ +varchar#!#smallint +babel4157_c1#!#-1 +~~END~~ + + +DROP TABLE babel4157_tbl +GO + +SELECT tbl.babel4157_c1 INTO babel4157_tbl FROM ( + SELECT cast(17 as binary(1)) AS babel4157_c1 + UNION + SELECT cast(10 as varbinary(3)) AS babel4157_c1 +) AS tbl +ORDER BY 1 +GO + +SELECT * FROM babel4157_tbl ORDER BY 1 +GO +~~START~~ +varbinary +00000A +11 +~~END~~ + + +SELECT name, max_length FROM sys.columns WHERE name = 'babel4157_c1' +GO +~~START~~ +varchar#!#smallint +babel4157_c1#!# +~~END~~ + + +DROP TABLE babel4157_tbl +GO + +SELECT 'string' AS babel4157_c1 +UNION +SELECT CAST('varchar' AS VARCHAR(40)) AS babel4157_c1 +ORDER BY 1 +GO +~~START~~ +varchar +string +varchar +~~END~~ + + +SELECT CAST('long string test' AS VARCHAR(MAX)) AS babel4157_c1 +UNION +SELECT CAST('foo' AS VARCHAR(4)) AS babel4157_c1 +ORDER BY 1 +GO +~~START~~ +varchar +foo +long string test +~~END~~ + + +SELECT 'string' AS babel4157_c1 +UNION +SELECT CAST('char' AS CHAR(15)) AS babel4157_c1 +ORDER BY 1 +GO +~~START~~ +varchar +char +string +~~END~~ + + +SELECT 'string' AS babel4157_c1 +UNION +SELECT CAST(N'ΘЖऌฒ' AS NCHAR(15)) AS babel4157_c1 +ORDER BY 1 +GO +~~START~~ +nchar +string +ΘЖऌฒ +~~END~~ + + +SELECT 'string' AS babel4157_c1 +UNION +SELECT CAST(N'ΘЖऌฒ' AS NVARCHAR(40)) AS babel4157_c1 +ORDER BY 1 +GO +~~START~~ +nvarchar +string +ΘЖऌฒ +~~END~~ + + +SELECT 'char' +ORDER BY 1 +GO +~~START~~ +text +char +~~END~~ + + +SELECT 'char' +GO +~~START~~ +varchar +char +~~END~~ + + +SELECT 'foo' +UNION +SELECT 'longer string' +ORDER BY 1 +GO +~~START~~ +varchar +foo +longer string +~~END~~ + + +SELECT 'foo' +UNION +SELECT CAST('bar' AS VARCHAR(20)) +ORDER BY 1 +GO +~~START~~ +varchar +bar +foo +~~END~~ + + +SELECT 'longer string' +UNION +SELECT CAST('foo' as CHAR(3)) +ORDER BY 1 +GO +~~START~~ +varchar +foo +longer string +~~END~~ + + +SELECT CAST('foo' as CHAR(3)) +UNION +SELECT 'longer string' +ORDER BY 1 +GO +~~START~~ +varchar +foo +longer string +~~END~~ + + +SELECT 'longer string' +UNION +SELECT CAST('ऌฒ' as NCHAR(2)) +ORDER BY 1 +GO +~~START~~ +nchar +longer string +ऌฒ +~~END~~ + + +SELECT CAST('ऌฒ' as NCHAR(2)) +UNION +SELECT 'longer string' +ORDER BY 1 +GO +~~START~~ +nchar +longer string +ऌฒ +~~END~~ + + +-- VALUES +select tbl.babel3392_c1 into babel3392_vals from ( + values (CAST('1' AS CHAR(10))), (CAST(N'ΘЖऌฒ' AS NCHAR(15))), (NULL) +) as tbl(babel3392_c1) +GO + +SELECT * FROM babel3392_vals; +GO +~~START~~ +nchar +1 +ΘЖऌฒ + +~~END~~ + + +SELECT name, max_length FROM sys.columns WHERE name = 'babel3392_c1' +GO +~~START~~ +varchar#!#smallint +babel3392_c1#!#30 +~~END~~ + + +DROP TABLE babel3392_vals; +GO + +-- IN +SELECT 1 WHERE CAST('1' AS CHAR(10)) IN ( + CAST(N'1' AS NCHAR(10)), CAST('2' AS CHAR(20)), CAST('3' AS VARCHAR), '4', NULL +); +GO +~~START~~ +int +1 +~~END~~ + + +-- TEXT +SELECT CAST('foo' AS TEXT) UNION SELECT CAST('bar' as CHAR(10)) UNION SELECT NULL ORDER BY 1; +GO +~~START~~ +text + +bar +foo +~~END~~ + + +-- BINARY +select cast(17 as binary(1)) +UNION +select cast(10 as binary(2)) +ORDER BY 1 +GO +~~START~~ +binary +000A +1100 +~~END~~ + + +select NULL +UNION +select cast(10 as binary(2)) +ORDER BY 1 +GO +~~START~~ +binary + +000A +~~END~~ + + +-- Incorrect length +select cast(17 as varbinary(1)) UNION select cast(10 as varbinary(2)) ORDER BY 1; +GO +~~START~~ +varbinary +000A +11 +~~END~~ + + +select cast(17 as varbinary(MAX)) UNION select cast(10 as varbinary(2)) ORDER BY 1; +GO +~~START~~ +varbinary +00000011 +000A +~~END~~ + + +select cast(17 as varbinary(1)) UNION select cast(10 as varbinary(2)) union select cast(N'a' as NCHAR(10)); +GO +~~ERROR (Code: 33557097)~~ + +~~ERROR (Message: UNION could not convert type "nchar" to bbf_varbinary)~~ + + +SELECT CAST(N'ΘЖऌฒ' AS NCHAR(15)) UNION select cast(10 as varbinary(2)); +GO +~~ERROR (Code: 33557097)~~ + +~~ERROR (Message: UNION could not convert type varbinary to bpchar)~~ + + +SELECT CAST(1 as BIT) UNION SELECT cast(N'ab' as NCHAR(10)) UNION SELECT CAST('bar' as CHAR(10)); +go +~~ERROR (Code: 33557097)~~ + +~~ERROR (Message: UNION could not convert type "nchar" to "bit")~~ + + +SELECT 'foo' +UNION +SELECT cast(17 as varbinary(2)) +GO +~~ERROR (Code: 33557097)~~ + +~~ERROR (Message: cannot coerce string literal to varbinary datatype)~~ + + +SELECT 'foo' +UNION +SELECT cast(17 as varbinary(2)) +ORDER BY 1 +GO +~~ERROR (Code: 33557097)~~ + +~~ERROR (Message: cannot coerce string literal to varbinary datatype)~~ + + +SELECT cast(17 as varbinary(2)) +UNION +SELECT 'foo' +ORDER BY 1 +GO +~~ERROR (Code: 33557097)~~ + +~~ERROR (Message: cannot coerce string literal to varbinary datatype)~~ + + +SELECT 'foo' +UNION +SELECT 'bar' +UNION +SELECT cast(17 as varbinary(2)) +ORDER BY 1 +GO +~~ERROR (Code: 33557097)~~ + +~~ERROR (Message: UNION could not convert type varbinary to "varchar")~~ + + +-- BABEL-1874 +SELECT DISTINCT CAST( 1 AS BIT) AS Col1 +UNION +SELECT DISTINCT NULL +GO +~~START~~ +bit +1 + +~~END~~ + + +SELECT DISTINCT NULL +UNION +SELECT CAST( 1 AS BIT) AS Col1 +GO +~~START~~ +bit +1 + +~~END~~ + + +SELECT DISTINCT 'longer string' +UNION +SELECT CAST('bar' as VARCHAR(3)) +GO +~~START~~ +varchar +bar +longer string +~~END~~ + + +CREATE TABLE babel1874 (a CHAR(3), b NVARCHAR(MAX), c BIT) +GO + +INSERT INTO babel1874 VALUES ('foo', N'ΘЖऌฒ', 1) +GO +~~ROW COUNT: 1~~ + + +SELECT N'longer string' as c1, CAST('1' AS VARCHAR(10)) as c2, c as c3 FROM babel1874 +UNION +SELECT a, COUNT(b), NULL as c3 FROM babel1874 GROUP BY a, c3 +ORDER BY c3, c2, c1 +GO +~~START~~ +nvarchar#!#int#!#bit +foo#!#1#!# +longer string#!#1#!#1 +~~END~~ + + +DROP TABLE babel1874 +GO + +CREATE TABLE babel3392_collation(c1 NVARCHAR(20) COLLATE japanese_cs_as, c2 NCHAR(10) COLLATE japanese_cs_as); +GO + +INSERT INTO babel3392_collation VALUES ('う', 'ウ') +go +~~ROW COUNT: 1~~ + + +SELECT * FROM babel3392_collation +GO +~~START~~ +nvarchar#!#nchar +う#!#ウ +~~END~~ + + +SELECT tbl.babel4157_c1 INTO babel4157_tbl FROM ( + SELECT c1 as babel4157_c1 FROM babel3392_collation + UNION + SELECT c2 as babel4157_c1 FROM babel3392_collation +) tbl +GO + +SELECT * FROM babel4157_tbl order by babel4157_c1 COLLATE japanese_cs_as +GO +~~START~~ +nvarchar +う +ウ +~~END~~ + + +SELECT name, max_length FROM sys.columns WHERE name = 'babel4157_c1' +GO +~~START~~ +varchar#!#smallint +babel4157_c1#!#40 +~~END~~ + + +DROP TABLE babel4157_tbl +GO + +SELECT tbl.babel4157_c1 INTO babel4157_tbl FROM ( + SELECT c1 as babel4157_c1 FROM babel3392_collation + UNION + SELECT 'foo' as babel4157_c1 +) tbl +GO + +SELECT * FROM babel4157_tbl order by babel4157_c1 COLLATE SQL_Latin1_General_CP1_CI_AS +GO +~~START~~ +nvarchar +foo +う +~~END~~ + + +SELECT name, max_length FROM sys.columns WHERE name = 'babel4157_c1' +GO +~~START~~ +varchar#!#smallint +babel4157_c1#!#40 +~~END~~ + + +DROP TABLE babel4157_tbl +GO + +CREATE TABLE babel3392_nocol(c1 VARCHAR(30)) +GO + +INSERT INTO babel3392_nocol VALUES('foo') +GO +~~ROW COUNT: 1~~ + + +SELECT tbl.babel4157_c1 INTO babel4157_tbl FROM ( + SELECT c1 as babel4157_c1 FROM babel3392_nocol + UNION + SELECT c1 as babel4157_c1 FROM babel3392_collation +) tbl +GO + +SELECT * FROM babel4157_tbl order by babel4157_c1 COLLATE SQL_Latin1_General_CP1_CI_AS +GO +~~START~~ +nvarchar +foo +う +~~END~~ + + +SELECT name, max_length FROM sys.columns WHERE name = 'babel4157_c1' +GO +~~START~~ +varchar#!#smallint +babel4157_c1#!#60 +~~END~~ + + +DROP TABLE babel4157_tbl +GO +DROP TABLE babel3392_nocol +DROP TABLE babel3392_collation +GO diff --git a/test/JDBC/expected/non_default_server_collation/chinese_prc_ci_as/BABEL-LIKE2ILIKE.out b/test/JDBC/expected/non_default_server_collation/chinese_prc_ci_as/BABEL-LIKE2ILIKE.out index 15d4ad139f..2609cced7e 100644 --- a/test/JDBC/expected/non_default_server_collation/chinese_prc_ci_as/BABEL-LIKE2ILIKE.out +++ b/test/JDBC/expected/non_default_server_collation/chinese_prc_ci_as/BABEL-LIKE2ILIKE.out @@ -35,13 +35,18 @@ select c1 from like_tesing1 where c1 LIKE 'Jon%' GO ~~START~~ varchar +JONES JoneS +jOnes ~~END~~ select c1 from like_tesing1 where c1 LIKE 'jone_' GO ~~START~~ varchar +JONES +JoneS +jOnes ~~END~~ select c1 from like_tesing1 where c1 LIKE '_one_' @@ -87,9 +92,6 @@ select c1 from like_tesing1 where c1 NOT LIKE 'jone%' GO ~~START~~ varchar -JONES -JoneS -jOnes abcD ?b?D ~~END~~ @@ -170,9 +172,8 @@ Select count(*) from like_tesing1 where c3 LIKE (select c3 from like_tesing1 whe GO ~~START~~ int -~~ERROR (Code: 512)~~ - -~~ERROR (Message: more than one row returned by a subquery used as an expression)~~ +1 +~~END~~ with p1 as (select c1 from like_tesing1 where c1 LIKE '__Ć_'), p2 as (select c3 from like_tesing1 where c3 LIKE 'äƀ__') diff --git a/test/JDBC/expected/non_default_server_collation/chinese_prc_ci_as/ISC-Domains-vu-verify.out b/test/JDBC/expected/non_default_server_collation/chinese_prc_ci_as/ISC-Domains-vu-verify.out index 6e45ee9956..d2befd9991 100644 --- a/test/JDBC/expected/non_default_server_collation/chinese_prc_ci_as/ISC-Domains-vu-verify.out +++ b/test/JDBC/expected/non_default_server_collation/chinese_prc_ci_as/ISC-Domains-vu-verify.out @@ -3,16 +3,38 @@ select * from information_schema.domains where DOMAIN_SCHEMA = 'isc_domains_vu_p go ~~START~~ nvarchar#!#nvarchar#!#varchar#!#varchar#!#int#!#int#!#nvarchar#!#nvarchar#!#nvarchar#!#varchar#!#varchar#!#nvarchar#!#tinyint#!#smallint#!#int#!#smallint#!#nvarchar +master#!#isc_domains_vu_prepare_s#!#bigint_t#!#bigint#!##!##!##!##!##!##!##!##!#19#!#10#!#0#!##!# +master#!#isc_domains_vu_prepare_s#!#binary_t#!#binary#!#8#!#8#!##!##!##!##!##!##!##!##!##!##!# +master#!#isc_domains_vu_prepare_s#!#bit_t#!#bit#!##!##!##!##!##!##!##!##!##!##!##!##!# +master#!#isc_domains_vu_prepare_s#!#char_t#!#char#!#10#!#10#!##!##!#chinese_prc_ci_as#!##!##!##!##!##!##!##!# +master#!#isc_domains_vu_prepare_s#!#date_t#!#date#!##!##!##!##!##!##!##!##!##!##!##!#0#!# +master#!#isc_domains_vu_prepare_s#!#datetime_t#!#datetime#!##!##!##!##!##!##!##!##!##!##!##!#3#!# +master#!#isc_domains_vu_prepare_s#!#datetime2_t#!#datetime2#!##!##!##!##!##!##!##!##!##!##!##!#5#!# +master#!#isc_domains_vu_prepare_s#!#datetimeoffset_t#!#datetimeoffset#!##!##!##!##!##!##!##!##!##!##!##!#5#!# +master#!#isc_domains_vu_prepare_s#!#image_t#!#image#!#2147483647#!#2147483647#!##!##!##!##!##!##!##!##!##!##!# +master#!#isc_domains_vu_prepare_s#!#int_t#!#int#!##!##!##!##!##!##!##!##!#10#!#10#!#0#!##!# +master#!#isc_domains_vu_prepare_s#!#money_t#!#money#!##!##!##!##!##!##!##!##!#19#!#10#!#4#!##!# +master#!#isc_domains_vu_prepare_s#!#my_tbl_type#!#table type#!##!##!##!##!##!##!##!##!##!##!##!##!# +master#!#isc_domains_vu_prepare_s#!#nchar_t#!#char#!#9#!#9#!##!##!#chinese_prc_ci_as#!##!##!##!##!##!##!##!# +master#!#isc_domains_vu_prepare_s#!#ntext_t#!#ntext#!#1073741823#!#2147483646#!##!##!#chinese_prc_ci_as#!##!##!##!##!##!##!##!# +master#!#isc_domains_vu_prepare_s#!#numeric_t#!#numeric#!##!##!##!##!##!##!##!##!#5#!#10#!#3#!##!# +master#!#isc_domains_vu_prepare_s#!#nvarchar_t#!#nvarchar#!#8#!#16#!##!##!#chinese_prc_ci_as#!##!##!##!##!##!##!##!# +master#!#isc_domains_vu_prepare_s#!#real_t#!#real#!##!##!##!##!##!##!##!##!#24#!#2#!##!##!# +master#!#isc_domains_vu_prepare_s#!#smalldatetime_t#!#smalldatetime#!##!##!##!##!##!##!##!##!##!##!##!#0#!# +master#!#isc_domains_vu_prepare_s#!#smallint_t#!#smallint#!##!##!##!##!##!##!##!##!#5#!#10#!#0#!##!# +master#!#isc_domains_vu_prepare_s#!#smallmoney_t#!#smallmoney#!##!##!##!##!##!##!##!##!#10#!#10#!#4#!##!# +master#!#isc_domains_vu_prepare_s#!#sql_variant_t#!#sql_variant#!#0#!#0#!##!##!#chinese_prc_ci_as#!##!##!##!##!##!##!##!# +master#!#isc_domains_vu_prepare_s#!#text_t#!#text#!#2147483647#!#2147483647#!##!##!#chinese_prc_ci_as#!##!##!##!##!##!##!##!# +master#!#isc_domains_vu_prepare_s#!#time_t#!#time#!##!##!##!##!##!##!##!##!##!##!##!#5#!# +master#!#isc_domains_vu_prepare_s#!#tinyint_t#!#tinyint#!##!##!##!##!##!##!##!##!#3#!#10#!#0#!##!# +master#!#isc_domains_vu_prepare_s#!#varbinary_t#!#varbinary#!#10#!#10#!##!##!##!##!##!##!##!##!##!##!# +master#!#isc_domains_vu_prepare_s#!#varchar_t#!#nvarchar#!#8#!#16#!##!##!#chinese_prc_ci_as#!##!##!##!##!##!##!##!# ~~END~~ -- Test cross db references use isc_domains_vu_prepare_db go -~~ERROR (Code: 911)~~ - -~~ERROR (Message: database "isc_domains_vu_prepare_db" does not exist)~~ - select COUNT(*) from information_schema.domains go diff --git a/test/JDBC/expected/non_default_server_collation/chinese_prc_ci_as/babel_collection.out b/test/JDBC/expected/non_default_server_collation/chinese_prc_ci_as/babel_collection.out index 95d6d1370a..2c8ec8a15b 100644 --- a/test/JDBC/expected/non_default_server_collation/chinese_prc_ci_as/babel_collection.out +++ b/test/JDBC/expected/non_default_server_collation/chinese_prc_ci_as/babel_collection.out @@ -388,9 +388,8 @@ Select * from testing4 where c3 LIKE (select c3 from testing4 where c3 NOT LIKE' GO ~~START~~ varchar#!#char#!#nvarchar -~~ERROR (Code: 512)~~ - -~~ERROR (Message: more than one row returned by a subquery used as an expression)~~ +abcD#!#AbcD #!#ABCd +~~END~~ with p1 as (select c1 from testing4 where c1 LIKE '__Ć_'), p2 as (select c3 from testing4 where c3 LIKE 'äƀ__') @@ -510,6 +509,8 @@ SELECT * FROM testing5 where c1 COLLATE French_CI_AS like 'jo%' ; GO ~~START~~ varchar +JONES +JoneS ~~END~~ SET babelfish_showplan_all ON; @@ -529,6 +530,8 @@ SELECT * FROM testing5 where c1 COLLATE Chinese_PRC_CI_AS like 'jo%' ; GO ~~START~~ varchar +JONES +JoneS ~~END~~ SET babelfish_showplan_all ON; diff --git a/test/JDBC/expected/non_default_server_collation/chinese_prc_ci_as/like_expression.out b/test/JDBC/expected/non_default_server_collation/chinese_prc_ci_as/like_expression.out index 77729ac5da..d02618bdca 100644 --- a/test/JDBC/expected/non_default_server_collation/chinese_prc_ci_as/like_expression.out +++ b/test/JDBC/expected/non_default_server_collation/chinese_prc_ci_as/like_expression.out @@ -114,6 +114,7 @@ GO ~~START~~ varchar abc +Abc ~~END~~