Activity log for bug #798597

Date Who What changed Old value New value Message
2011-06-17 09:26:34 Philip Stoev bug added bug
2011-06-17 09:26:38 Philip Stoev maria: milestone 5.3
2011-06-17 09:26:45 Philip Stoev maria: assignee Igor Babaev (igorb-seattle)
2011-06-23 08:03:19 Philip Stoev description Not repeatable in maria-5.2, mysql-5.1. The following query: SELECT COUNT(*), v2.f3, v2.f10, v2.f1 FROM t1 LEFT JOIN (v2, t3) ON 1 GROUP BY v2.f3, v2.f10, v2.f1 ; returns the following error: 1062: 'Duplicate entry 'NULL-NULL-0' for key 'group_key' The "group_key" is not reflected in the EXPLAIN and derived* optimizer switches have no effect. explain: id select_type table type possible_keys key key_len ref rows Extra 1 SIMPLE t1 ALL NULL NULL NULL NULL 2 Using temporary; Using filesort 1 SIMPLE t3 ALL NULL NULL NULL NULL 0 Using where 1 SIMPLE t2 ALL NULL NULL NULL NULL 2 test case: CREATE TABLE t1 ( f1 int) ; INSERT INTO t1 VALUES (19),(20); CREATE TABLE t2 (f1 int not null, f3 int, f10 int) ; INSERT INTO t2 VALUES (19,1,NULL),(20,5,0); CREATE VIEW v2 AS SELECT * FROM t2; CREATE TABLE t3 (f1 int); EXPLAIN SELECT COUNT(*), v2.f3, v2.f10, v2.f1 FROM t1 LEFT JOIN (v2, t3) ON 1 GROUP BY v2.f3, v2.f10, v2.f1 ; --error 0 SELECT COUNT(*), v2.f3, v2.f10, v2.f1 FROM t1 LEFT JOIN (v2, t3) ON 1 GROUP BY v2.f3, v2.f10, v2.f1 ; The following query: SELECT COUNT(*), v2.f3, v2.f10, v2.f1 FROM t1 LEFT JOIN (v2, t3) ON 1 GROUP BY v2.f3, v2.f10, v2.f1 ; returns the following error: 1062: 'Duplicate entry 'NULL-NULL-0' for key 'group_key' The "group_key" is not reflected in the EXPLAIN and derived* optimizer switches have no effect. explain: id select_type table type possible_keys key key_len ref rows Extra 1 SIMPLE t1 ALL NULL NULL NULL NULL 2 Using temporary; Using filesort 1 SIMPLE t3 ALL NULL NULL NULL NULL 0 Using where 1 SIMPLE t2 ALL NULL NULL NULL NULL 2 test case: CREATE TABLE t1 ( f1 int) ; INSERT INTO t1 VALUES (19),(20); CREATE TABLE t2 (f1 int not null, f3 int, f10 int) ; INSERT INTO t2 VALUES (19,1,NULL),(20,5,0); CREATE VIEW v2 AS SELECT * FROM t2; CREATE TABLE t3 (f1 int); EXPLAIN SELECT COUNT(*), v2.f3, v2.f10, v2.f1 FROM t1 LEFT JOIN (v2, t3) ON 1 GROUP BY v2.f3, v2.f10, v2.f1 ; --error 0 SELECT COUNT(*), v2.f3, v2.f10, v2.f1 FROM t1 LEFT JOIN (v2, t3) ON 1 GROUP BY v2.f3, v2.f10, v2.f1 ;
2011-06-23 11:34:05 Michael Widenius maria: assignee Igor Babaev (igorb-seattle) Michael Widenius (monty)
2011-06-24 06:49:18 Michael Widenius maria: milestone 5.3 5.1
2011-06-24 07:14:55 Michael Widenius maria: importance Undecided High
2011-06-24 07:15:02 Michael Widenius maria: status New Fix Committed
2011-06-24 07:15:33 Launchpad Janitor branch linked lp:maria/5.1
2011-12-01 18:52:20 Michael Widenius maria: status Fix Committed Fix Released