You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
new_collations_enabled_on_first_bootstrap = true
CREATE TABLE `tbl_40` (
`col_286` enum('Alice','Bob','Charlie','David') NOT NULL DEFAULT 'Alice',
`col_287` enum('Alice','Bob','Charlie','David') NOT NULL DEFAULT 'David',
`col_288` enum('Alice','Bob','Charlie','David') NOT NULL,
`col_289` varbinary(328) DEFAULT NULL,
`col_290` varbinary(93) DEFAULT NULL,
`col_291` blob NOT NULL,
`col_292` varbinary(99) DEFAULT 'OGscEXkep',
`col_293` tinytext DEFAULT NULL,
`col_294` binary(1) DEFAULT '\0',
PRIMARY KEY (`col_288`,`col_287`)
);
CREATE TABLE `tbl_36` (
`col_267` enum('Alice','Bob','Charlie','David') COLLATE utf8_general_ci NOT NULL,
`col_268` blob NOT NULL,
PRIMARY KEY (`col_268`(5)),
UNIQUE KEY `idx_89` (`col_267`)
);
insert into tbl_36 values('Charlie','');
insert into tbl_36 values('Alice' ,'BGQ' );
insert into tbl_36 values('David' ,'T' );
insert into tbl_36 values('Bob' ,'dwvn');
insert into tbl_40 values('Bob' ,'Bob' ,'Alice' ,'dOb' ,'LJdDGSrhQygwPfU' ,'wiDFjUPawD' ,'sohIsCwtziMMY' ,'' ,'');
insert into tbl_40 values('Charlie','Charlie','Alice' ,'rkdXBd' ,'ANByPfzMWcUgdwotqX','WY' ,'YvZEoUf' ,'htMhzZp' ,'');
insert into tbl_40 values('Alice' ,'David' ,'Bob' ,'mH' ,'hsdxXGRjM' ,'EKOtzKqRLHud' ,'OGscEXkep' ,'BuXxttreasv' ,'');
insert into tbl_40 values('Alice' ,'Charlie','Charlie','yidEeezdtfdR','KoDfWT' ,'xYrwaGWCRc' ,'LVURmvnJD' ,'tFUIrLopQjdm' ,'');
insert into tbl_40 values('Alice' ,'David' ,'Charlie','ZzgULlAlibKy','zIgIQ' ,'' ,'OGscEXkep' ,'HXp' ,'');
insert into tbl_40 values('Alice' ,'Alice' ,'David' ,'q' ,'bJoiBW' ,'' ,'ODWB' ,'ezHQSlfIwYwmG','');
insert into tbl_40 values('David' ,'Charlie','David' ,'P' ,'Rpilx' ,'cTNBLbEitNHJoYnnXb','aknjlShSLCuaNHZjeb','PSQ' ,'');
select tbl_40.col_287, tbl_40.col_288 from tbl_40 where col_288 in ( select col_268 from tbl_36 where (tbl_40.col_288, tbl_40.col_287) = ('Charlie', 'David') ); ---check
select tbl_40.col_287, tbl_40.col_288 from tbl_40 where col_288 in (select col_268 from tbl_36); ---check
2. What did you expect to see? (Required)
mysql> select tbl_40.col_287, tbl_40.col_288 from tbl_40 where col_288 in ( select col_268 from tbl_36 where (tbl_40.col_288, tbl_40.col_287) = ('Charlie', 'David') );
Empty set (0.00 sec)
mysql> select tbl_40.col_287, tbl_40.col_288 from tbl_40 where col_288 in (select col_268 from tbl_36);
Empty set (0.00 sec)
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
2. What did you expect to see? (Required)
3. What did you see instead (Required)
4. What is your TiDB version? (Required)
The text was updated successfully, but these errors were encountered: