File tree Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change 5643
5643
DROP VIEW v1;
5644
5644
DROP TABLE t1;
5645
5645
#
5646
+ # MDEV-8742 Wrong result for SELECT..WHERE view_latin1_swedish_ci_field='a' COLLATE latin1_bin
5647
+ #
5648
+ CREATE TABLE t1 (a VARCHAR(10) CHARACTER SET latin1);
5649
+ INSERT INTO t1 VALUES ('a'),('A');
5650
+ CREATE VIEW v1 AS SELECT * FROM t1 WHERE a='a';
5651
+ SELECT * FROM v1 WHERE a=_latin1'a' COLLATE latin1_bin;
5652
+ a
5653
+ a
5654
+ DROP VIEW v1;
5655
+ DROP TABLE t1;
5656
+ #
5646
5657
# End of 10.1 tests
5647
5658
#
Original file line number Diff line number Diff line change @@ -5503,6 +5503,17 @@ SELECT * FROM v1 WHERE a='5' AND a<2;
5503
5503
DROP VIEW v1;
5504
5504
DROP TABLE t1;
5505
5505
5506
+ --echo #
5507
+ --echo # MDEV-8742 Wrong result for SELECT..WHERE view_latin1_swedish_ci_field='a' COLLATE latin1_bin
5508
+ --echo #
5509
+ CREATE TABLE t1 (a VARCHAR(10) CHARACTER SET latin1);
5510
+ INSERT INTO t1 VALUES ('a'),('A');
5511
+ CREATE VIEW v1 AS SELECT * FROM t1 WHERE a='a';
5512
+ SELECT * FROM v1 WHERE a=_latin1'a' COLLATE latin1_bin;
5513
+ DROP VIEW v1;
5514
+ DROP TABLE t1;
5515
+
5516
+
5506
5517
--echo #
5507
5518
--echo # End of 10.1 tests
5508
5519
--echo #
You can’t perform that action at this time.
0 commit comments