| 1 |
############################################################################### |
| 2 |
# BUG#26518925 ASSERTION FAILURE IN INNODB IN-MEMORY TMP TABLE CODE (WL8117) # |
| 3 |
# In temptable there is a possibility of row without fields, in query like # |
| 4 |
# select distinct 1 from t1,t2 where t1.a=t2.a; # |
| 5 |
############################################################################### |
| 6 |
|
| 7 |
--source include/have_debug.inc |
| 8 |
|
| 9 |
SET DEBUG='d'; |
| 10 |
CREATE TABLE t1 (a INT(10) UNSIGNED NOT NULL PRIMARY KEY,b INT(10) UNSIGNED); |
| 11 |
INSERT INTO t1 VALUES (1,1),(2,1),(3,1),(4,1); |
| 12 |
CREATE TABLE t2 (a INT(10) UNSIGNED, KEY(A), b text); |
| 13 |
INSERT INTO t2 VALUES (1,'1'),(2,'2'); |
| 14 |
INSERT INTO t2 VALUES (1,'1'),(2,'2'),(1,'1'),(2,'2'); |
| 15 |
|
| 16 |
SELECT DISTINCT 1 FROM t1,t2 WHERE t1.a=t2.a; |
| 17 |
|
| 18 |
DROP TABLE t1; |
| 19 |
DROP TABLE t2; |