forked from pingcap/tiflash
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
function result name should contain collator info (pingcap#2808) (pin…
- Loading branch information
1 parent
3e0e679
commit ed1fecd
Showing
2 changed files
with
70 additions
and
21 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
15 changes: 15 additions & 0 deletions
15
tests/tidb-ci/new_collation_fullstack/function_collator.test
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,15 @@ | ||
mysql> drop table if exists test.t1 | ||
mysql> drop table if exists test.t2 | ||
mysql> create table test.t1(col_varchar_20_key_signed varchar(20) COLLATE utf8mb4_general_ci, col_varbinary_20_key_signed varbinary(20), col_varbinary_20_undef_signed varbinary(20)); | ||
mysql> create table test.t2(col_char_20_key_signed char(20) COLLATE utf8mb4_general_ci, col_varchar_20_undef_signed varchar(20) COLLATE utf8mb4_general_ci); | ||
mysql> alter table test.t1 set tiflash replica 1 | ||
mysql> alter table test.t2 set tiflash replica 1 | ||
mysql> insert into test.t1 values('Abc',0x62,0x616263); | ||
mysql> insert into test.t2 values('abc','b'); | ||
func> wait_table test t1 | ||
func> wait_table test t2 | ||
|
||
mysql> set @@tidb_isolation_read_engines='tiflash'; select * from test.t1 where t1.col_varchar_20_key_signed not in (select col_char_20_key_signed from test.t2 where t1.col_varchar_20_key_signed not in ( t1.col_varbinary_20_key_signed, t1.col_varbinary_20_undef_signed,col_varchar_20_undef_signed,col_char_20_key_signed)); | ||
|
||
mysql> drop table if exists test.t1; | ||
mysql> drop table if exists test.t2; |