mariadb/mysql-test/suite/pbxt/r
Igor Babaev 21b1b5f040 Fixed bug #52636.
Applied the fix for bug #47217 from the mysql-6.0 codebase.
The patch adds not null predicates generated for the left parts
of the equality predicates used for ref accesses. This is done
for such predicates both in where conditions and on conditions.
For the where conditions the not null predicates were generated
but in 5.0/5.1 they actually never were used due to some lame
merge from 4.1 to 5.0. The fix for bug #47217 made these 
predicates to be used in the condition pushed to the tables.
Yet only this patch generates not null predicates for equality
predicated from on conditions of outer joins.
This patch introduces a performance regression that can be
observed on a test case from null_key.test. The regression
will disappear after the fix for bug #57024 from mariadb-5.1
is pulled into mariadb-5.3.
The patch contains many changes in the outputs of the EXPLAIN 
commands since generated not null predicates are considered as
parts of the conditions pushed to join tables and may add
'Usingwhere' in some rows of EXPLAINs where there used
to be no such comments.
2010-09-28 12:39:33 -07:00
..
alias.result Added the PBXT test suite 2009-04-02 12:03:14 +02:00
alter_table.result Updated PBXT to version 1.0.08 RC2 2009-08-17 13:12:36 +02:00
analyse.result Added the PBXT test suite 2009-04-02 12:03:14 +02:00
analyze.result Updated all tests for RC2 2009-08-17 17:57:58 +02:00
ansi.result Added the PBXT test suite 2009-04-02 12:03:14 +02:00
auto_increment.result Updated all tests for RC2 2009-08-17 17:57:58 +02:00
bench_count_distinct.result Added the PBXT test suite 2009-04-02 12:03:14 +02:00
bigint.result Added the PBXT test suite 2009-04-02 12:03:14 +02:00
binary.result Added the PBXT test suite 2009-04-02 12:03:14 +02:00
bool.result Added the PBXT test suite 2009-04-02 12:03:14 +02:00
bulk_replace.result Added the PBXT test suite 2009-04-02 12:03:14 +02:00
case.result Added the PBXT test suite 2009-04-02 12:03:14 +02:00
cast.result Added the PBXT test suite 2009-04-02 12:03:14 +02:00
check.result Added the PBXT test suite 2009-04-02 12:03:14 +02:00
client_xml.result Added the PBXT test suite 2009-04-02 12:03:14 +02:00
comments.result Added the PBXT test suite 2009-04-02 12:03:14 +02:00
compare.result Added the PBXT test suite 2009-04-02 12:03:14 +02:00
connect.result Fix pbxt test suite failures: 2009-10-07 20:56:11 +04:00
consistent_snapshot.result Added the PBXT test suite 2009-04-02 12:03:14 +02:00
constraints.result Added the PBXT test suite 2009-04-02 12:03:14 +02:00
contributors.result Added the PBXT test suite 2009-04-02 12:03:14 +02:00
count_distinct.result Added the PBXT test suite 2009-04-02 12:03:14 +02:00
count_distinct2.result Added the PBXT test suite 2009-04-02 12:03:14 +02:00
count_distinct3.result Added the PBXT test suite 2009-04-02 12:03:14 +02:00
create.result Added the PBXT test suite 2009-04-02 12:03:14 +02:00
date_formats.result Added the PBXT test suite 2009-04-02 12:03:14 +02:00
default.result After-merge fixes for MySQL 5.1.46 merge into MariaDB: result file update and compiler warning removals. 2010-04-28 21:29:45 +02:00
delete.result Updated all tests for RC2 2009-08-17 17:57:58 +02:00
derived.result Added the PBXT test suite 2009-04-02 12:03:14 +02:00
dirty_close.result Added the PBXT test suite 2009-04-02 12:03:14 +02:00
distinct.result Fixed bug #52636. 2010-09-28 12:39:33 -07:00
drop.result Added the PBXT test suite 2009-04-02 12:03:14 +02:00
empty_table.result Added the PBXT test suite 2009-04-02 12:03:14 +02:00
endspace.result Added the PBXT test suite 2009-04-02 12:03:14 +02:00
errors.result Added the PBXT test suite 2009-04-02 12:03:14 +02:00
explain.result Backport into MariaDB-5.2 the following: 2009-12-15 20:23:55 +03:00
flush.result Added the PBXT test suite 2009-04-02 12:03:14 +02:00
flush_read_lock_kill.result Added the PBXT test suite 2009-04-02 12:03:14 +02:00
flush_table.result Added the PBXT test suite 2009-04-02 12:03:14 +02:00
foreign_key.result Added the PBXT test suite 2009-04-02 12:03:14 +02:00
func_concat.result Added the PBXT test suite 2009-04-02 12:03:14 +02:00
func_crypt.result Added the PBXT test suite 2009-04-02 12:03:14 +02:00
func_date_add.result Added the PBXT test suite 2009-04-02 12:03:14 +02:00
func_default.result Added the PBXT test suite 2009-04-02 12:03:14 +02:00
func_equal.result Added the PBXT test suite 2009-04-02 12:03:14 +02:00
func_gconcat.result Added the PBXT test suite 2009-04-02 12:03:14 +02:00
func_group.result Result file updates following merge of MySQL 5.1.42 and XtraDB 9. 2010-01-16 06:12:57 +01:00
func_if.result Added the PBXT test suite 2009-04-02 12:03:14 +02:00
func_in.result Added the PBXT test suite 2009-04-02 12:03:14 +02:00
func_isnull.result Added the PBXT test suite 2009-04-02 12:03:14 +02:00
func_like.result Added the PBXT test suite 2009-04-02 12:03:14 +02:00
func_math.result Updated all tests for RC2 2009-08-17 17:57:58 +02:00
func_misc.result Added the PBXT test suite 2009-04-02 12:03:14 +02:00
func_op.result Added the PBXT test suite 2009-04-02 12:03:14 +02:00
func_regexp.result Added the PBXT test suite 2009-04-02 12:03:14 +02:00
func_sapdb.result Added the PBXT test suite 2009-04-02 12:03:14 +02:00
func_set.result Added the PBXT test suite 2009-04-02 12:03:14 +02:00
func_str.result Update tests for 5.1.46 2010-05-06 14:43:19 +02:00
func_system.result Added the PBXT test suite 2009-04-02 12:03:14 +02:00
func_timestamp.result Added the PBXT test suite 2009-04-02 12:03:14 +02:00
gcc296.result Added the PBXT test suite 2009-04-02 12:03:14 +02:00
grant.result pluggable auth with plugin examples 2010-03-29 17:13:53 +02:00
grant_cache.result Added the PBXT test suite 2009-04-02 12:03:14 +02:00
greedy_optimizer.result Fixed bug #52636. 2010-09-28 12:39:33 -07:00
group_by.result Fixed bug #52636. 2010-09-28 12:39:33 -07:00
group_min_max.result MariaDB 5.2 -> MariaDB 5.3 merge 2010-06-26 14:05:41 +04:00
having.result Added the PBXT test suite 2009-04-02 12:03:14 +02:00
heap.result Backport into MariaDB-5.2 the following: 2009-12-15 20:23:55 +03:00
heap_auto_increment.result Added the PBXT test suite 2009-04-02 12:03:14 +02:00
heap_btree.result Added the PBXT test suite 2009-04-02 12:03:14 +02:00
heap_hash.result Added the PBXT test suite 2009-04-02 12:03:14 +02:00
help.result Added the PBXT test suite 2009-04-02 12:03:14 +02:00
insert.result Added the PBXT test suite 2009-04-02 12:03:14 +02:00
insert_select.result Added the PBXT test suite 2009-04-02 12:03:14 +02:00
insert_update.result Added the PBXT test suite 2009-04-02 12:03:14 +02:00
join.result Fixed bug #52636. 2010-09-28 12:39:33 -07:00
join_crash.result Added the PBXT test suite 2009-04-02 12:03:14 +02:00
join_nested.result Fixed bug #52636. 2010-09-28 12:39:33 -07:00
join_outer.result Fixed bug #52636. 2010-09-28 12:39:33 -07:00
key.result Updated all tests for RC2 2009-08-17 17:57:58 +02:00
key_cache.result Backport into MariaDB-5.2 the following: 2009-12-15 20:23:55 +03:00
key_diff.result Updated all tests for RC2 2009-08-17 17:57:58 +02:00
key_primary.result Added the PBXT test suite 2009-04-02 12:03:14 +02:00
keywords.result Added the PBXT test suite 2009-04-02 12:03:14 +02:00
limit.result Added the PBXT test suite 2009-04-02 12:03:14 +02:00
lock.result Added the PBXT test suite 2009-04-02 12:03:14 +02:00
lock_multi.result Removed compiler warnings 2010-01-06 23:27:53 +02:00
lock_tables_lost_commit.result Added the PBXT test suite 2009-04-02 12:03:14 +02:00
lowercase_table2.result Added the PBXT test suite 2009-04-02 12:03:14 +02:00
lowercase_table_grant.result Added the PBXT test suite 2009-04-02 12:03:14 +02:00
lowercase_table_qcache.result Added the PBXT test suite 2009-04-02 12:03:14 +02:00
lowercase_view.result PBXT merge fixes. 2009-08-31 13:07:44 +02:00
metadata.result Added the PBXT test suite 2009-04-02 12:03:14 +02:00
multi_statement.result Removed compiler warnings 2010-04-07 01:47:08 +03:00
multi_update.result Added the PBXT test suite 2009-04-02 12:03:14 +02:00
mysql_protocols.result Added the PBXT test suite 2009-04-02 12:03:14 +02:00
mysqlshow.result after merge fix. 2010-06-07 23:53:25 +02:00
mysqlslap.result Fix pbxt test suite failures: 2009-10-07 20:56:11 +04:00
negation_elimination.result MariaDB 5.2 -> MariaDB 5.3 merge 2010-06-26 14:05:41 +04:00
null.result MariaDB 5.2 -> MariaDB 5.3 merge 2010-06-26 14:05:41 +04:00
null_key.result Fixed bug #52636. 2010-09-28 12:39:33 -07:00
odbc.result Added the PBXT test suite 2009-04-02 12:03:14 +02:00
olap.result Added the PBXT test suite 2009-04-02 12:03:14 +02:00
order_by.result MariaDB 5.2 -> MariaDB 5.3 merge 2010-06-26 14:05:41 +04:00
order_fill_sortbuf.result Added the PBXT test suite 2009-04-02 12:03:14 +02:00
overflow.result Added the PBXT test suite 2009-04-02 12:03:14 +02:00
partition_charset.result Added the PBXT test suite 2009-04-02 12:03:14 +02:00
partition_error.result A number of after-merge fixes following merge of MySQL 5.1.44 into MariaDB. 2010-03-09 16:03:54 +01:00
partition_grant.result Added the PBXT test suite 2009-04-02 12:03:14 +02:00
partition_hash.result Added the PBXT test suite 2009-04-02 12:03:14 +02:00
partition_list.result Added the PBXT test suite 2009-04-02 12:03:14 +02:00
partition_order.result Added the PBXT test suite 2009-04-02 12:03:14 +02:00
partition_pruning.result MariaDB 5.2 -> MariaDB 5.3 merge 2010-06-26 14:05:41 +04:00
partition_range.result After-merge fixes for MySQL 5.1.39 merge. 2009-10-16 14:45:42 +02:00
pbxt_assertions.result Added the PBXT test suite 2009-04-02 12:03:14 +02:00
pbxt_bugs.result Merge fix for PBXT running inside embedded server (MBug#439889). 2009-12-22 11:33:20 +01:00
pbxt_locking.result Added the PBXT test suite 2009-04-02 12:03:14 +02:00
pbxt_my_fail2.result Added the PBXT test suite 2009-04-02 12:03:14 +02:00
pbxt_ref_int.result Referenced table does not exist 2010-05-06 15:22:40 +02:00
pbxt_transactions.result Added the PBXT test suite 2009-04-02 12:03:14 +02:00
pbxt_updates.result Added the PBXT test suite 2009-04-02 12:03:14 +02:00
pbxt_xa.result Suppress a safemutex warning pending fix of MBug#578117. 2010-05-10 09:29:30 +02:00
perror.result Added the PBXT test suite 2009-04-02 12:03:14 +02:00
preload.result Updated all tests for RC2 2009-08-17 17:57:58 +02:00
ps_1general.result DS-MRR backport: 2009-12-16 12:28:51 +03:00
ps_10nestset.result Added the PBXT test suite 2009-04-02 12:03:14 +02:00
ps_11bugs.result Fix pbxt test suite failures: 2009-10-07 20:56:11 +04:00
ps_grant.result After-merge fixes for MySQL 5.1.41 merge: PBXT result file updates. 2009-11-24 11:19:08 +01:00
range.result MariaDB 5.2 -> MariaDB 5.3 merge 2010-06-26 14:05:41 +04:00
read_only.result Added the PBXT test suite 2009-04-02 12:03:14 +02:00
rename.result Added the PBXT test suite 2009-04-02 12:03:14 +02:00
renamedb.result Added the PBXT test suite 2009-04-02 12:03:14 +02:00
replace.result Added the PBXT test suite 2009-04-02 12:03:14 +02:00
rollback.result Added the PBXT test suite 2009-04-02 12:03:14 +02:00
schema.result Updated all tests for RC2 2009-08-17 17:57:58 +02:00
select.result Fixed bug #52636. 2010-09-28 12:39:33 -07:00
select_found.result Added the PBXT test suite 2009-04-02 12:03:14 +02:00
select_safe.result MariaDB 5.2 -> MariaDB 5.3 merge 2010-06-26 14:05:41 +04:00
skip_grants.result After-merge fixes for MySQL 5.1.41 merge: PBXT result file updates. 2009-11-24 11:19:08 +01:00
skip_name_resolve.result Added the PBXT test suite 2009-04-02 12:03:14 +02:00
sql_mode.result Added the PBXT test suite 2009-04-02 12:03:14 +02:00
status.result Added the PBXT test suite 2009-04-02 12:03:14 +02:00
subselect.result MariaDB 5.2 -> MariaDB 5.3 merge 2010-06-26 14:05:41 +04:00
sum_distinct.result Added the PBXT test suite 2009-04-02 12:03:14 +02:00
temp_table.result Added the PBXT test suite 2009-04-02 12:03:14 +02:00
truncate.result Added the PBXT test suite 2009-04-02 12:03:14 +02:00
type_binary.result Added the PBXT test suite 2009-04-02 12:03:14 +02:00
type_bit.result Added the PBXT test suite 2009-04-02 12:03:14 +02:00
type_date.result Added the PBXT test suite 2009-04-02 12:03:14 +02:00
type_datetime.result Added the PBXT test suite 2009-04-02 12:03:14 +02:00
type_decimal.result Added the PBXT test suite 2009-04-02 12:03:14 +02:00
type_enum.result Updated all tests for RC2 2009-08-17 17:57:58 +02:00
type_float.result Added the PBXT test suite 2009-04-02 12:03:14 +02:00
type_nchar.result Added the PBXT test suite 2009-04-02 12:03:14 +02:00
type_newdecimal.result Added the PBXT test suite 2009-04-02 12:03:14 +02:00
type_ranges.result Updated all tests for RC2 2009-08-17 17:57:58 +02:00
type_set.result Added the PBXT test suite 2009-04-02 12:03:14 +02:00
type_time.result Added the PBXT test suite 2009-04-02 12:03:14 +02:00
type_timestamp.result After-merge fixes for MySQL 5.1.46 merge into MariaDB: result file update and compiler warning removals. 2010-04-28 21:29:45 +02:00
type_uint.result Added the PBXT test suite 2009-04-02 12:03:14 +02:00
type_year.result Added the PBXT test suite 2009-04-02 12:03:14 +02:00
udf.result Added the PBXT test suite 2009-04-02 12:03:14 +02:00
union.result DS-MRR backport: 2009-12-16 12:28:51 +03:00
update.result updated test results in the pbxt suite 2010-06-07 14:35:11 +02:00
user_var.result Added the PBXT test suite 2009-04-02 12:03:14 +02:00
view_grant.result After-merge fixes for MySQL 5.1.41 merge: PBXT result file updates. 2009-11-24 11:19:08 +01:00
view_query_cache.result Added the PBXT test suite 2009-04-02 12:03:14 +02:00
xml.result Added the PBXT test suite 2009-04-02 12:03:14 +02:00