Activity log for bug #879871

Date Who What changed Old value New value Message
2011-10-22 11:36:42 Philip Stoev bug added bug
2011-10-22 11:36:51 Philip Stoev maria: assignee Oleksandr "Sanja" Byelkin (sanja-byelkin)
2011-10-22 11:36:58 Philip Stoev maria: milestone 5.3
2011-10-26 12:10:36 Philip Stoev maria: status New Invalid
2011-11-09 07:39:56 Philip Stoev summary Wrong result with GROUP BY + multipart key + IS (NOT) NULL + InnoDB + 1-row table Wrong result with GROUP BY + multipart key + IS (NOT) NULL + InnoDB + 1-row table + index_condition_pushdown
2011-11-09 07:41:27 Philip Stoev maria: status Invalid Confirmed
2011-11-09 07:43:03 Philip Stoev description The following query: SELECT a FROM t1 WHERE c IS NULL AND d IS NOT NULL GROUP BY 1; returns a row evcen though no row matches the WHERE predicate. Repeatable in maria-5.3. Not repeatable in maria-5.2,mysql-5.5 offending explain from maria 5.3: | 1 | SIMPLE | t1 | index | c | PRIMARY | 4 | NULL | 1 | Using where | correct explain from maria 5.2, mysql 5.5: | 1 | SIMPLE | t1 | ref | c | c | 4 | const | 1 | Using where; Using filesort | test case: DROP TABLE t1; CREATE TABLE t1 ( a int NOT NULL, b int, c varchar(1), d varchar(1), PRIMARY KEY (a), KEY c (c,b) ) ENGINE=InnoDB; INSERT INTO t1 VALUES (10,8,'g','g'); SELECT a FROM t1 WHERE c IS NULL AND d IS NOT NULL GROUP BY 1; bzr version-info: revision-id: igor@askmonty.org-20111022071427-lvbk4la7nuiqy1vr date: 2011-10-22 00:14:27 -0700 build-date: 2011-10-22 14:36:32 +0300 revno: 3246 branch-nick: maria-5.3 The following query: SELECT a FROM t1 WHERE c IS NULL AND d IS NOT NULL GROUP BY 1; returns a row evcen though no row matches the WHERE predicate. Repeatable in maria-5.3. Not repeatable in maria-5.2,mysql-5.5 offending explain from maria 5.3: | 1 | SIMPLE | t1 | index | c | PRIMARY | 4 | NULL | 1 | Using where | correct explain from maria 5.2, mysql 5.5: | 1 | SIMPLE | t1 | ref | c | c | 4 | const | 1 | Using where; Using filesort | test case: DROP TABLE t1; CREATE TABLE t1 (  a int NOT NULL,  b int,  c varchar(1),  d varchar(1),  PRIMARY KEY (a),  KEY c (c,b) ) ENGINE=InnoDB; INSERT INTO t1 VALUES (10,8,'g','g'); SET SESSION optimizer_switch='index_condition_pushdown=ON'; # was missing previously from test case SELECT a FROM t1 WHERE c IS NULL AND d IS NOT NULL GROUP BY 1; bzr version-info: revision-id: igor@askmonty.org-20111022071427-lvbk4la7nuiqy1vr date: 2011-10-22 00:14:27 -0700 build-date: 2011-10-22 14:36:32 +0300 revno: 3246 branch-nick: maria-5.3
2011-11-11 07:33:50 Philip Stoev maria: assignee Oleksandr "Sanja" Byelkin (sanja-byelkin) Sergey Petrunia (sergefp)
2011-11-11 15:28:02 Igor Babaev maria: assignee Sergey Petrunia (sergefp) Igor Babaev (igorb-seattle)
2011-11-11 15:28:09 Igor Babaev maria: importance Undecided High
2011-11-12 07:42:04 Igor Babaev maria: status Confirmed Fix Committed
2011-12-13 16:16:53 Daniel Bartholomew maria: status Fix Committed Fix Released