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
Copy file name to clipboardExpand all lines: mysql-test/r/order_by_all.result
+36Lines changed: 36 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -2801,5 +2801,41 @@ Note 1003 /* select#1 */ select distinct `test`.`t1`.`a` AS `a` from `test`.`t1`
2801
2801
SELECT DISTINCT a FROM t1 WHERE b=1 ORDER BY 1;
2802
2802
a
2803
2803
DROP TABLE t1;
2804
+
#
2805
+
# Bug#18636076 DEBUG CRASH ON
2806
+
# PLAN_CHANGE_WATCHDOG::~PLAN_CHANGE_WATCHDOG
2807
+
#
2808
+
CREATE TABLE t1 (
2809
+
pk INTEGER NOT NULL,
2810
+
PRIMARY KEY (pk)
2811
+
) ENGINE=MyISAM;
2812
+
INSERT INTO t1 VALUES (1), (2), (3);
2813
+
CREATE VIEW view_t1 AS SELECT * FROM t1;
2814
+
CREATE TABLE t2 (
2815
+
i1 INTEGER NOT NULL
2816
+
) ENGINE=MyISAM;
2817
+
EXPLAIN SELECT DISTINCT t2.i1, view_t1.pk
2818
+
FROM view_t1 LEFT JOIN t2
2819
+
ON view_t1.pk = t2.i1
2820
+
WHERE (view_t1.pk <= 204 AND t2.i1 != 3)
2821
+
OR view_t1.pk BETWEEN 1 AND 7
2822
+
ORDER BY t2.i1;
2823
+
id select_type table partitions type possible_keys key key_len ref rows filtered Extra
2824
+
1 SIMPLE t2 NULL system NULL NULL NULL NULL 0 0.00 const row not found
2825
+
1 SIMPLE t1 NULL index PRIMARY PRIMARY 4 NULL 3 100.00 Using where; Using index
2826
+
Warnings:
2827
+
Note 1003 /* select#1 */ select distinct NULL AS `i1`,`test`.`t1`.`pk` AS `pk` from `test`.`t1` where (((`test`.`t1`.`pk` <= 204) and (NULL <> 3)) or (`test`.`t1`.`pk` between 1 and 7)) order by NULL
Copy file name to clipboardExpand all lines: mysql-test/r/order_by_icp_mrr.result
+36Lines changed: 36 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -2801,5 +2801,41 @@ Note 1003 /* select#1 */ select distinct `test`.`t1`.`a` AS `a` from `test`.`t1`
2801
2801
SELECT DISTINCT a FROM t1 WHERE b=1 ORDER BY 1;
2802
2802
a
2803
2803
DROP TABLE t1;
2804
+
#
2805
+
# Bug#18636076 DEBUG CRASH ON
2806
+
# PLAN_CHANGE_WATCHDOG::~PLAN_CHANGE_WATCHDOG
2807
+
#
2808
+
CREATE TABLE t1 (
2809
+
pk INTEGER NOT NULL,
2810
+
PRIMARY KEY (pk)
2811
+
) ENGINE=MyISAM;
2812
+
INSERT INTO t1 VALUES (1), (2), (3);
2813
+
CREATE VIEW view_t1 AS SELECT * FROM t1;
2814
+
CREATE TABLE t2 (
2815
+
i1 INTEGER NOT NULL
2816
+
) ENGINE=MyISAM;
2817
+
EXPLAIN SELECT DISTINCT t2.i1, view_t1.pk
2818
+
FROM view_t1 LEFT JOIN t2
2819
+
ON view_t1.pk = t2.i1
2820
+
WHERE (view_t1.pk <= 204 AND t2.i1 != 3)
2821
+
OR view_t1.pk BETWEEN 1 AND 7
2822
+
ORDER BY t2.i1;
2823
+
id select_type table partitions type possible_keys key key_len ref rows filtered Extra
2824
+
1 SIMPLE t2 NULL system NULL NULL NULL NULL 0 0.00 const row not found
2825
+
1 SIMPLE t1 NULL index PRIMARY PRIMARY 4 NULL 3 100.00 Using where; Using index
2826
+
Warnings:
2827
+
Note 1003 /* select#1 */ select distinct NULL AS `i1`,`test`.`t1`.`pk` AS `pk` from `test`.`t1` where (((`test`.`t1`.`pk` <= 204) and (NULL <> 3)) or (`test`.`t1`.`pk` between 1 and 7)) order by NULL
Copy file name to clipboardExpand all lines: mysql-test/r/order_by_none.result
+36Lines changed: 36 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -2800,5 +2800,41 @@ Note 1003 /* select#1 */ select distinct `test`.`t1`.`a` AS `a` from `test`.`t1`
2800
2800
SELECT DISTINCT a FROM t1 WHERE b=1 ORDER BY 1;
2801
2801
a
2802
2802
DROP TABLE t1;
2803
+
#
2804
+
# Bug#18636076 DEBUG CRASH ON
2805
+
# PLAN_CHANGE_WATCHDOG::~PLAN_CHANGE_WATCHDOG
2806
+
#
2807
+
CREATE TABLE t1 (
2808
+
pk INTEGER NOT NULL,
2809
+
PRIMARY KEY (pk)
2810
+
) ENGINE=MyISAM;
2811
+
INSERT INTO t1 VALUES (1), (2), (3);
2812
+
CREATE VIEW view_t1 AS SELECT * FROM t1;
2813
+
CREATE TABLE t2 (
2814
+
i1 INTEGER NOT NULL
2815
+
) ENGINE=MyISAM;
2816
+
EXPLAIN SELECT DISTINCT t2.i1, view_t1.pk
2817
+
FROM view_t1 LEFT JOIN t2
2818
+
ON view_t1.pk = t2.i1
2819
+
WHERE (view_t1.pk <= 204 AND t2.i1 != 3)
2820
+
OR view_t1.pk BETWEEN 1 AND 7
2821
+
ORDER BY t2.i1;
2822
+
id select_type table partitions type possible_keys key key_len ref rows filtered Extra
2823
+
1 SIMPLE t2 NULL system NULL NULL NULL NULL 0 0.00 const row not found
2824
+
1 SIMPLE t1 NULL index PRIMARY PRIMARY 4 NULL 3 100.00 Using where; Using index
2825
+
Warnings:
2826
+
Note 1003 /* select#1 */ select distinct NULL AS `i1`,`test`.`t1`.`pk` AS `pk` from `test`.`t1` where (((`test`.`t1`.`pk` <= 204) and (NULL <> 3)) or (`test`.`t1`.`pk` between 1 and 7)) order by NULL
0 commit comments