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
Manual merge of mysql-5.1-bugteam to mysql-trunk-merge.
Conflicts:
Text conflict in mysql-test/r/partition_innodb.result
Text conflict in sql/field.h
Text conflict in sql/item.h
Text conflict in sql/item_cmpfunc.h
Text conflict in sql/item_sum.h
Text conflict in sql/log_event_old.cc
Text conflict in sql/protocol.cc
Text conflict in sql/sql_select.cc
Text conflict in sql/sql_yacc.yy
--BZR--
revision-id: [email protected]
property-branch-nick: mysql-trunk-merge
testament3-sha1: 9ad412d4f73e36fe9f85436dbe7313a7d612aa62
INSERT INTO t1 VALUES (2,7,9), (4,7,9), (6,2,9), (17,0,9);
458
+
SELECT table1.f1, table2.f2
459
+
FROM t1 AS table1
460
+
JOIN t1 AS table2 ON table1.f3 = table2.f3
461
+
WHERE table2.f1 = 2
462
+
GROUP BY table1.f1, table2.f2
463
+
HAVING (table2.f2 = 8 AND table1.f1 >= 6);
464
+
f1 f2
465
+
EXPLAIN EXTENDED
466
+
SELECT table1.f1, table2.f2
467
+
FROM t1 AS table1
468
+
JOIN t1 AS table2 ON table1.f3 = table2.f3
469
+
WHERE table2.f1 = 2
470
+
GROUP BY table1.f1, table2.f2
471
+
HAVING (table2.f2 = 8 AND table1.f1 >= 6);
472
+
id select_type table type possible_keys key key_len ref rows filtered Extra
473
+
1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible HAVING noticed after reading const tables
474
+
Warnings:
475
+
Note 1003 select `test`.`table1`.`f1` AS `f1`,'7' AS `f2` from `test`.`t1` `table1` join `test`.`t1` `table2` where ((`test`.`table1`.`f3` = '9')) group by `test`.`table1`.`f1`,'7' having (('7' = 8) and (`test`.`table1`.`f1` >= 6))
476
+
EXPLAIN EXTENDED
477
+
SELECT table1.f1, table2.f2
478
+
FROM t1 AS table1
479
+
JOIN t1 AS table2 ON table1.f3 = table2.f3
480
+
WHERE table2.f1 = 2
481
+
GROUP BY table1.f1, table2.f2
482
+
HAVING (table2.f2 = 8);
483
+
id select_type table type possible_keys key key_len ref rows filtered Extra
484
+
1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible HAVING noticed after reading const tables
485
+
Warnings:
486
+
Note 1003 select `test`.`table1`.`f1` AS `f1`,'7' AS `f2` from `test`.`t1` `table1` join `test`.`t1` `table2` where ((`test`.`table1`.`f3` = '9')) group by `test`.`table1`.`f1`,'7' having ('7' = 8)
0 commit comments