[FEAT MERGE] 424 SQL compatibility patch 433
Co-authored-by: wjhh2008 <wjh2006-1@163.com> Co-authored-by: GongYusen <986957406@qq.com> Co-authored-by: hy-guo <fqboyg@gmail.com>
This commit is contained in:
@ -234,7 +234,7 @@ collation(replace(null, b, 'a'))
|
||||
binary
|
||||
select collation(replace(uc, b, ub)) from coll_test;
|
||||
collation(replace(uc, b, ub))
|
||||
binary
|
||||
utf8mb4_general_ci
|
||||
select collation(replace(ub, uc, ub)) from coll_test;
|
||||
collation(replace(ub, uc, ub))
|
||||
utf8mb4_bin
|
||||
@ -252,7 +252,7 @@ collation(replace(null, b, 'a'))
|
||||
binary
|
||||
select collation(replace(uc, b, ub)) from coll_test;
|
||||
collation(replace(uc, b, ub))
|
||||
binary
|
||||
utf8mb4_general_ci
|
||||
select collation(replace(ub, uc, ub)) from coll_test;
|
||||
collation(replace(ub, uc, ub))
|
||||
utf8mb4_bin
|
||||
|
||||
@ -6348,9 +6348,9 @@ select 'a' collate gbk_chinese_ci regexp 'A' collate gbk_chinese_ci;
|
||||
'a' collate gbk_chinese_ci regexp 'A' collate gbk_chinese_ci
|
||||
1
|
||||
select 'a' collate gbk_bin regexp 'A' collate gbk_chinese_ci;
|
||||
ERROR HY000: Illegal mix of collations
|
||||
ERROR HY000: Illegal mix of collations (gbk_bin,EXPLICIT), (gbk_chinese_ci,EXPLICIT)
|
||||
select 'a' collate gbk_chinese_ci regexp 'A' collate gbk_bin;
|
||||
ERROR HY000: Illegal mix of collations
|
||||
ERROR HY000: Illegal mix of collations (gbk_chinese_ci,EXPLICIT), (gbk_bin,EXPLICIT)
|
||||
set names latin1;
|
||||
select 'a' collate latin1_bin regexp 'A';
|
||||
'a' collate latin1_bin regexp 'A'
|
||||
@ -6371,9 +6371,9 @@ select 'a' collate latin1_swedish_ci regexp 'A' collate latin1_swedish_ci;
|
||||
'a' collate latin1_swedish_ci regexp 'A' collate latin1_swedish_ci
|
||||
1
|
||||
select 'a' collate latin1_bin regexp 'A' collate latin1_swedish_ci;
|
||||
ERROR HY000: Illegal mix of collations
|
||||
ERROR HY000: Illegal mix of collations (latin1_bin,EXPLICIT), (latin1_swedish_ci,EXPLICIT)
|
||||
select 'a' collate latin1_swedish_ci regexp 'A' collate latin1_bin;
|
||||
ERROR HY000: Illegal mix of collations
|
||||
ERROR HY000: Illegal mix of collations (latin1_swedish_ci,EXPLICIT), (latin1_bin,EXPLICIT)
|
||||
drop database ly;
|
||||
create database ly character set GB18030;
|
||||
use ly;
|
||||
|
||||
Reference in New Issue
Block a user