mariadb/mysql-test/suite
unknown a6037394e3 Fix bug lp:817384
This bug is a special case of lp:813447.

Analysis:
Constant optimization finds that the condition t2.a = 1
can be used to access the primary key of table 't2'. As
a result both outer table t1,t2 are considered as constant
when we reach the execution phase. At the same time, during
constant optimization, the IN predicate is not evaluated
because it is expensive.

When execution of the outer query reaches do_select(),
control flow enter the branch:
if (join->table_count == join->const_tables)
{ ... }
This branch checks only the WHERE and HAVING clauses,
but doesn't check the ON clauses of the query. Since the
IN predicate was not evaluated during optimization, it is
not evaluated at all, thus execution doesn't detect that
the ON clause is FALSE.

Solution:
Similar to the patch for bug lp:813447, exclude system
tables from constant substitution based on unique key
lookups if there is an expensive ON condition on the
inner table.
2011-08-09 10:28:57 +03:00
..
binlog Merge with 5.1-microseconds 2011-05-28 05:11:32 +03:00
engines Bug#11766165 - 59211: SELECT RETURNS DIFFERENT VALUE FOR MIN(YEAR) FUNCTION 2011-03-01 21:26:24 +05:30
federated Fixes to mysql-test-run and tests 2011-03-01 00:35:05 +02:00
funcs_1 Update test results for the previous cset. 2011-07-05 10:32:49 +04:00
funcs_2 merge 5.0-> 5.1 2009-04-24 13:00:17 -04:00
handler Fixed compiler warnings 2011-02-25 20:15:27 +02:00
ibmdb2i BUG#58079 - Remove the IBM DB2 storage engine 2010-11-11 13:03:17 +03:00
im Move instance manager tests to it's own suite 2007-08-29 19:02:33 +02:00
innodb Merge. 2011-07-21 15:55:08 -07:00
innodb_plugin Automerge 5.2->5.3 2011-07-31 22:59:55 +02:00
jp Bug #45159 : some tests in suite "jp" fail in embedded server (use LOAD DATA) 2009-09-11 15:52:08 +03:00
large_tests Bug#27029 alter table ... enable keys crashes mysqld on large table 2007-06-21 12:45:56 -04:00
manual BUG#49978: Replication tests don't clean up replication state at the end 2010-12-19 18:07:28 +01:00
maria Automerge 5.2->5.3 2011-08-01 11:05:30 +02:00
ndb Merge with MySQL 5.1.57/58 2011-05-02 20:58:45 +03:00
ndb_team Merge with MySQL 5.1.55 2011-02-20 18:51:43 +02:00
optimizer_unfixed_bugs merge with 5.1-micro 2011-06-07 18:13:02 +02:00
oqgraph oqgraph and sphinx on windows 2010-09-15 17:29:57 +02:00
parts Added two new flags for the optimizer switch: 2011-06-05 21:54:25 -07:00
pbxt Fix bug lp:817384 2011-08-09 10:28:57 +03:00
percona Merge XtraDB from Percona Server 5.1.56-12.7 into MariaDB-5.1. 2011-04-29 16:16:42 +02:00
rpl Another attempt at fixing the rare random failures of rpl_corruption 2011-06-14 15:21:54 +02:00
rpl_ndb Backport MySQL WL#2540 into MariaDB. 2011-05-03 14:01:11 +02:00
sphinx use mtr_verbose() for debug output in suite.pm files 2011-03-01 18:31:33 +01:00
stress Merge trift2.:/MySQL/M51/mysql-5.1 2008-02-22 16:14:27 +01:00
sys_vars Merge with MariaDB 5.2 2011-05-10 18:17:43 +03:00
vcol Made the optimizer switches 'derived_merge' and 'derived_with_keys' 2011-07-21 14:23:08 -07:00