mariadb/mysql-test/r
unknown 0ad4e1b2a6 Bug #27807.
Non-correlated scalar subqueries may get executed
in EXPLAIN at the optimization phase if they are
part of a right hand sargable expression.
If the scalar subquery uses a temp table to 
materialize its results it will replace the 
subquery structure from the parser with a simple
select from the materialization table.
As a result the EXPLAIN will crash as the 
temporary materialization table is not to be shown
in EXPLAIN at all.
Fixed by preserving the original query structure
right after calling optimize() for scalar subqueries
with temp tables executed during EXPLAIN.


mysql-test/r/subselect.result:
  Bug #27807: test case
mysql-test/t/subselect.test:
  Bug #27807: test case
sql/item_subselect.cc:
  Bug #27807: preserve the join structure
sql/sql_select.cc:
  Bug #27807: introduce initialization function for tmp_join
sql/sql_select.h:
  Bug #27807: introduce initialization function for tmp_join
2007-05-04 10:48:51 +03:00
..
alias.result
alter_table-big.result
alter_table.result Bug #26794: 2007-03-14 11:54:20 +02:00
analyse.result
analyze.result
ansi.result
archive.result BUG#26138 - REPAIR TABLE with option USE_FRM erases all records in 2007-03-30 13:00:21 +05:00
archive_gis.result gis_generic test cases: 2007-03-29 11:20:08 +02:00
auto_increment.result
backup.result
bdb-alter-table-1.result
bdb-alter-table-2.result
bdb-crash.result
bdb-deadlock.result
bdb.result
bdb_cache.result
bdb_gis.result gis_generic test cases: 2007-03-29 11:20:08 +02:00
bdb_notembedded.result BUG#27939: Early NULLs filtering doesn't work for eq_ref access 2007-04-19 03:04:23 +04:00
bench_count_distinct.result
big_test.require
bigint.result
binary.result
binlog.result
blackhole.result
bool.result
bootstrap.result
bulk_replace.result
case.result
case_sensitive_file_system.require
cast.result
check.result
check_var_limit.require
client_xml.result bug#27608 XML output is not well-formed 2007-04-09 17:53:10 +05:00
comments.result
compare.result
compress.result
connect.result
consistent_snapshot.result
constraints.result
count_distinct.result
count_distinct2.result
count_distinct3.result
create.result Merge pilot.blaudden:/home/msvensson/mysql/mysql-5.0 2007-04-02 10:50:39 +02:00
create_not_windows.result
create_select_tmp.result
csv.result
ctype_big5.result
ctype_collate.result
ctype_cp932.result Merge pilot.blaudden:/home/msvensson/mysql/mysql-5.0 2007-03-01 18:12:56 +01:00
ctype_cp932_binlog.result Additional test changes for 2007-02-28 18:13:23 +04:00
ctype_cp932_notembedded.result Additional test changes for 2007-02-28 18:13:23 +04:00
ctype_cp1250_ch.result
ctype_cp1251.result
ctype_create.result
ctype_eucjpms.result
ctype_euckr.result
ctype_gb2312.result
ctype_gbk.result
ctype_hebrew.result
ctype_latin1.result
ctype_latin1_de.result
ctype_latin2.result
ctype_latin2_ch.result
ctype_many.result
ctype_mb.result
ctype_recoding.result
ctype_sjis.result
ctype_tis620.result
ctype_uca.result Bug#27079 Crash while grouping empty ucs2 strings 2007-03-27 12:20:20 +05:00
ctype_ucs.result Bug#22638 SOUNDEX broken for international characters 2007-03-28 18:57:30 +05:00
ctype_ucs2_def.result
ctype_ucs_binlog.result
ctype_ujis.result
ctype_utf8.result Bug#20095 Changing length of VARCHAR field with UTF8 collation does not truncate values 2007-04-13 10:05:55 +05:00
date_formats.result
default.result
delayed.result tests fixed to work in embedded server 2007-03-20 17:53:55 +04:00
delete.result
derived.result
dirty_close.result
distinct.result Bug #27659: 2007-04-10 16:55:48 +03:00
drop.result
drop_temp_table.result
empty_table.result
endspace.result
errors.result BUG 27513: fixed left-over sql mode from a test case. 2007-04-04 13:38:19 +03:00
exampledb.result
execution_constants.result
explain.result Bug#22331: Wrong WHERE in EXPLAIN EXTENDED when all expressions were optimized 2007-03-10 00:29:02 +03:00
federated.result
federated_archive.result
federated_bug_13118.result
fix_priv_tables.result
fix_priv_tabs.result
flush.result
flush2.result Backport from 5.1, limit SHOW VARIABLES to "log_bin%" 2007-03-23 12:35:30 +01:00
flush_block_commit.result
flush_block_commit_notembedded.result
flush_read_lock_kill.result
flush_table.result
foreign_key.result
fulltext.result
fulltext2.result
fulltext_cache.result
fulltext_distinct.result
fulltext_left_join.result BUG#25729 - boolean full text search is confused by NULLs produced by 2007-04-02 17:26:39 +05:00
fulltext_multi.result
fulltext_order_by.result
fulltext_update.result
fulltext_var.result
func_compress.result
func_concat.result
func_crypt.result
func_date_add.result
func_default.result Bug#22331: Wrong WHERE in EXPLAIN EXTENDED when all expressions were optimized 2007-03-10 00:29:02 +03:00
func_des_encrypt.result
func_encrypt.result
func_encrypt_nossl.result
func_equal.result
func_gconcat.result Bug #26815: 2007-03-27 19:28:04 +03:00
func_group.result Merge mysql.com:/home/ram/work/mysql-5.0-maint 2007-03-29 13:37:07 +05:00
func_if.result
func_in.result Fixed bug #27362: crash at evaluation of IN predicate when one 2007-03-22 00:05:36 -07:00
func_isnull.result
func_like.result
func_math.result
func_misc.result Bug#26093 (SELECT BENCHMARK() for SELECT statements does not produce valid 2007-03-01 19:20:47 -07:00
func_op.result
func_regexp.result Bug#22331: Wrong WHERE in EXPLAIN EXTENDED when all expressions were optimized 2007-03-10 00:29:02 +03:00
func_sapdb.result Merge mysql.com:/home/ram/work/b23616/b23616.4.1 2007-03-02 15:09:20 +04:00
func_set.result
func_str.result Bug #27530: 2007-04-11 13:58:16 +03:00
func_system.result
func_test.result Bug#22331: Wrong WHERE in EXPLAIN EXTENDED when all expressions were optimized 2007-03-10 00:29:02 +03:00
func_time.result Merge polly.local:/tmp/maint/bug20293/my50-bug20293 2007-03-06 20:50:49 +03:00
func_timestamp.result
gcc296.result
gis-rtree.result Merge bk@192.168.21.1:mysql-5.0 2007-03-15 16:21:43 +04:00
gis.result Merge pilot.blaudden:/home/msvensson/mysql/mysql-5.0 2007-04-02 10:50:39 +02:00
grant.result Fix for BUG#27337: Privileges are not properly restored. 2007-04-03 15:11:34 +04:00
grant2.result
grant3.result
grant_cache.result
greedy_optimizer.result
group_by.result Bug#27874: Non-grouped columns are allowed by * in ONLY_FULL_GROUP_BY mode. 2007-04-24 22:35:57 +04:00
group_min_max.result
handler.result
have_archive.require
have_bdb.require
have_big5.require
have_blackhole.require
have_compress.require
have_cp932.require
have_cp1250_ch.require
have_crypt.require
have_csv.require
have_debug.require
have_eucjpms.require
have_euckr.require
have_exampledb.require
have_federated_db.require
have_gb2312.require
have_gbk.require
have_geometry.require
have_innodb.require
have_latin2_ch.require
have_met_timezone.require
have_moscow_leap_timezone.require
have_mysql_upgrade.result
have_ndb.require
have_ndb_status_ok.require
have_outfile.require
have_perror.require
have_query_cache.require
have_raid.require
have_sjis.require
have_ssl.require Add "have_ssl" as synonym for "have_openssl" 2007-03-05 10:03:42 +01:00
have_symlink.require
have_tis620.require
have_ucs2.require
have_udf.require
have_udf_example.require
have_ujis.require
having.result Bug#22331: Wrong WHERE in EXPLAIN EXTENDED when all expressions were optimized 2007-03-10 00:29:02 +03:00
heap.result
heap_auto_increment.result
heap_btree.result Merge bk-internal.mysql.com:/home/bk/mysql-4.1-engines 2007-03-28 08:51:12 +02:00
heap_hash.result
help.result Merge trift2.:/MySQL/M41/test-help-4.1 2007-03-20 19:52:40 +01:00
im_daemon_life_cycle.result
im_life_cycle.result
im_options_set.result
im_options_unset.result
im_utils.result
index_merge.result
index_merge_bdb.result
index_merge_innodb.result
index_merge_innodb2.result
index_merge_ror.result
index_merge_ror_cpk.result
information_schema.result Bug#23491 MySQLDump prefix function call in a view by database name 2007-03-27 12:31:44 -04:00
information_schema_chmod.result
information_schema_db.result Bug #26817: mysqldump fails to backup database containing view with invalid definer 2007-03-23 19:24:03 +01:00
information_schema_inno.result
init_connect.result
init_file.result
innodb-big.result
innodb-deadlock.result
innodb-lock.result
innodb-replace.result
innodb-ucs2.result
innodb.result NULL MERGE this to 5.1 2007-03-22 14:40:52 -06:00
innodb_cache.result
innodb_gis.result gis_generic test cases: 2007-03-29 11:20:08 +02:00
innodb_handler.result
innodb_mysql.result
innodb_notembedded.result
innodb_timeout_rollback.result
innodb_unsafe_binlog.result
insert.result
insert_notembedded.result
insert_select-binlog.result
insert_select.result Bug #26207: When making the key image to use 2007-03-22 18:44:16 +02:00
insert_update.result Bug#23233: 0 as LAST_INSERT_ID() after INSERT .. ON DUPLICATE in the 2007-03-30 18:13:33 +04:00
is_debug_build.require
isam.result
join.result BUG#27939: Early NULLs filtering doesn't work for eq_ref access 2007-04-19 03:04:23 +04:00
join_crash.result
join_nested.result
join_outer.result
key.result Bug #24778: Innodb: No result when using ORDER BY 2007-04-20 11:01:53 +02:00
key_cache.result
key_diff.result
key_primary.result
keywords.result
kill.result
limit.result
loaddata.result Bug#27586: Wrong autoinc value assigned by LOAD DATA in the 2007-04-07 00:13:27 +04:00
loaddata_autocom_innodb.result
loaddata_autocom_ndb.result
lock.result
lock_multi.result
lock_tables_lost_commit.result
lowercase0.require
lowercase2.require
lowercase_fs_off.result
lowercase_table.result
lowercase_table2.result
lowercase_table3.result
lowercase_table_grant.result
lowercase_table_qcache.result
lowercase_view.result
merge.result tests fixed to work in embedded server 2007-03-20 17:53:55 +04:00
metadata.result
mix_innodb_myisam_binlog.result
multi_statement.result
multi_update.result
myisam-blob.result
myisam.result Merge chilla.local:/home/mydev/mysql-4.1-axmrg 2007-03-28 10:25:51 +02:00
mysql.result
mysql_client_test.result
mysql_protocols.result
mysql_upgrade.result
mysqladmin.result
mysqlbinlog-cp932.result
mysqlbinlog.result Add correct replace 2007-03-31 17:18:03 +02:00
mysqlbinlog2.result Bug#27171 mysqlbinlog produces different output depends from option -R 2007-03-22 20:55:59 +02:00
mysqlcheck.result
mysqldump-max.result
mysqldump.result Merge bk-internal.mysql.com:/home/bk/mysql-5.0-maint 2007-03-29 12:20:13 -04:00
mysqlshow.result
mysqltest.result Merge pilot.blaudden:/home/msvensson/mysql/mysql-5.0 2007-03-01 18:12:56 +01:00
ndb_alter_table.result
ndb_alter_table2.result
ndb_autodiscover.result BUG#18676 when cluster storage engine is down, misleading error message on create table with 4009. 2007-04-03 18:44:29 +08:00
ndb_autodiscover2.result
ndb_autodiscover3.result
ndb_basic.result
ndb_bitfield.result
ndb_blob.result ndb - bug#24028 in 5.0 2007-03-21 09:13:05 +01:00
ndb_cache.result
ndb_cache2.result
ndb_cache_multi.result
ndb_cache_multi2.result
ndb_charset.result
ndb_condition_pushdown.result
ndb_config.result
ndb_database.result
ndb_default_cluster.require
ndb_gis.result gis_generic test cases: 2007-03-29 11:20:08 +02:00
ndb_grant.result
ndb_index.result
ndb_index_ordered.result
ndb_index_unique.result
ndb_insert.result
ndb_limit.result
ndb_load.result
ndb_loaddatalocal.result
ndb_lock.result
ndb_minmax.result
ndb_multi.result
ndb_read_multi_range.result
ndb_rename.result
ndb_replace.result
ndb_restore.result Bug#27775 mediumint auto_increment with ndb_restore 2007-04-13 01:37:24 +02:00
ndb_restore_print.result medium int printout support 2007-03-08 15:37:53 +07:00
ndb_single_user.result Bug #25275 SINGLE USER MODE prevents ALTER on non-ndb tables for other mysqld nodes 2007-03-28 10:10:27 +02:00
ndb_subquery.result
ndb_transaction.result
ndb_trigger.result Bug #26242 UPDATE with subquery and triggers failing with cluster tables 2007-04-04 12:50:39 +02:00
ndb_truncate.result
ndb_types.result
ndb_update.result
negation_elimination.result
not_as_root.require
not_embedded.require
not_embedded_server.result
not_openssl.require
null.result
null_key.result
odbc.result
olap.result Fixed bug #26830: a crash for the query with a subselect containing ROLLUP. 2007-03-10 02:47:47 -08:00
openssl_1.result Bug#25309 SSL connections without CA certificate broken since MySQL 5.0.23 2007-03-28 12:23:55 +02:00
openssl_2.result
order_by.result Merge olga.mysql.com:/home/igor/mysql-4.1-opt 2007-04-03 22:24:57 -07:00
order_fill_sortbuf.result
outfile.result
overflow.result
packet.result
perror.result
preload.result
ps.result
ps_1general.result
ps_2myisam.result Bug #21103: DATE column not compared as DATE 2007-03-02 15:23:13 +01:00
ps_3innodb.result Bug #21103: DATE column not compared as DATE 2007-03-02 15:23:13 +01:00
ps_4heap.result Bug #21103: DATE column not compared as DATE 2007-03-02 15:23:13 +01:00
ps_5merge.result Bug #21103: DATE column not compared as DATE 2007-03-02 15:23:13 +01:00
ps_6bdb.result Bug#21103: DATE column not compared as DATE 2007-03-05 14:02:29 +01:00
ps_7ndb.result Bug #21103: DATE column not compared as DATE 2007-03-02 15:23:13 +01:00
ps_10nestset.result
ps_11bugs.result
ps_grant.result
query_cache.result
query_cache_merge.result
query_cache_notembedded.result
raid.result
range.result BUG#26624, pushbuild fixes: Merge to 5.0 2007-03-31 00:48:31 +04:00
read_only.result
rename.result
repair.result
replace.result
rollback.result
round.result
row.result Merge gshchepa.loc:/home/uchum/work/bk-trees/mysql-4.1-opt-27704 2007-04-20 15:31:33 +05:00
rowid_order_bdb.result
rowid_order_innodb.result
rpl000001.a.result
rpl000001.b.result
rpl000001.result
rpl000002.result
rpl000004.a.result
rpl000004.b.result
rpl000004.result
rpl000005.result
rpl000006.result
rpl000008.result
rpl000009.result
rpl000010.result
rpl000011.result
rpl000012.result
rpl000013.result
rpl000015.result
rpl000017.result
rpl_alter.result
rpl_auto_increment.result
rpl_auto_increment_11932.result
rpl_change_master.result
rpl_charset.result
rpl_charset_sjis.result
rpl_commit_after_flush.result
rpl_create_database.result
rpl_critical_errors.result Added missing result file for rpl_critical_errors. 2007-04-20 14:08:12 +02:00
rpl_critical_errors.result.txt BUG#26551 (Aborted query for non-transactional table breaks replication): 2007-04-12 14:00:45 +02:00
rpl_ddl.result
rpl_deadlock.result
rpl_delete_all.result
rpl_do_grant.result
rpl_drop.result
rpl_drop_db.result
rpl_drop_temp.result
rpl_dual_pos_advance.result
rpl_EE_error.result
rpl_empty_master_crash.result
rpl_error_ignored_table.result
rpl_failed_optimize.result
rpl_flush_log_loop.result
rpl_flush_tables.result
rpl_free_items.result
rpl_get_lock.result
rpl_ignore_grant.result
rpl_ignore_revoke.result
rpl_ignore_table.result Update test result after merge 2007-03-29 14:21:45 +02:00
rpl_init_slave.result
rpl_innodb.result
rpl_insert_delayed.result
rpl_insert_id.result
rpl_insert_ignore.result
rpl_insert_select.result
rpl_known_bugs_detection.result
rpl_loaddata.result
rpl_loaddata_charset.result Renaming recenly added test case, because of name conflict 2007-03-01 11:52:25 +04:00
rpl_loaddata_rule_m.result
rpl_loaddata_rule_s.result
rpl_loaddatalocal.result
rpl_locale.result
rpl_log.result
rpl_log_pos.result
rpl_many_optimize.result
rpl_master_pos_wait.result
rpl_max_relay_size.result
rpl_misc_functions.result Bug #25543 Replication of wrong values if using rand() in stored procedure 2007-03-09 12:18:28 -05:00
rpl_multi_delete.result
rpl_multi_delete2.result
rpl_multi_query.result
rpl_multi_update.result
rpl_multi_update2.result
rpl_multi_update3.result
rpl_multi_update4.result
rpl_mystery22.result
rpl_ndb_innodb_trans.result
rpl_openssl.result
rpl_optimize.result
rpl_packet.result Fix for bug #23775 "Replicated event larger that max_allowed_packet infinitely re-transmits". 2007-03-16 17:25:20 +03:00
rpl_ps.result
rpl_redirect.result
rpl_relayrotate.result
rpl_relayspace.result
rpl_replicate_do.result Bug#24478 DROP TRIGGER is not caught by replicate-*-table filters 2007-02-26 15:25:43 +04:00
rpl_reset_slave.result
rpl_rewrite_db.result
rpl_rotate_logs.result
rpl_server_id1.result
rpl_server_id2.result
rpl_session_var.result
rpl_set_charset.result
rpl_skip_error.result
rpl_slave_status.result
rpl_sp.result
rpl_sp_effects.result
rpl_sporadic_master.result
rpl_ssl.result Bug#21781 Replication slave io thread hangs 2007-03-05 10:07:22 +01:00
rpl_start_stop_slave.result
rpl_temporary.result
rpl_timezone.result
rpl_trigger.result
rpl_trunc_temp.result
rpl_until.result
rpl_user_variables.result
rpl_variables.result
rpl_view.result
schema.result
select.result Bug #19372: 2007-04-10 19:08:08 +03:00
select_found.result
select_safe.result
server_id.require
server_id1.require
show_check.result
skip_grants.result Bug#26285 selecting information_schema crahes server 2007-03-16 12:15:51 +04:00
skip_name_resolve.result
slave-running.result
slave-stopped.result
sp-big.result
sp-code.result Bug#23491 MySQLDump prefix function call in a view by database name 2007-03-27 12:31:44 -04:00
sp-destruct.result
sp-dynamic.result
sp-error.result Bug#26503 (Illegal SQL exception handler code causes the server to crash) 2007-03-14 12:02:32 -06:00
sp-prelocking.result
sp-security.result Fix for BUG#9504: Stored procedures: execute privilege doesn't 2007-03-23 14:12:11 +03:00
sp-threads.result
sp-ucs2.result
sp-vars.result
sp.result Merge jamppa@bk-internal.mysql.com:/home/bk/mysql-5.0 2007-04-12 12:50:02 +03:00
sp_notembedded.result
sp_stress_case.result
sp_trans.result Bug #27395 OPTION_STATUS_NO_TRANS_UPDATE is not preserved at the end of SF() 2007-03-24 19:20:00 +02:00
sql_mode.result
ssl.result
ssl_compress.result
ssl_connect.result
status.result
strict.result Bug#27069 set with identical elements are created(additional fix) 2007-04-10 15:01:04 +05:00
strict_autoinc_1myisam.result
strict_autoinc_2innodb.result
strict_autoinc_3heap.result
strict_autoinc_4bdb.result
strict_autoinc_5ndb.result
subselect.result Bug #27807. 2007-05-04 10:48:51 +03:00
subselect2.result
subselect3.result Fixed bug #27870. The bug that causes crashes manifests itself at some 2007-04-17 17:35:29 -07:00
subselect_gis.result
subselect_innodb.result
subselect_notembedded.result
sum_distinct-big.result
sum_distinct.result
symlink.result
synchronization.result
sysdate_is_now.result
system_mysql_db.result
system_mysql_db_refs.result
tablelock.result
temp_table.result Bug #24791: Union with AVG-groups generates wrong results 2007-03-22 10:56:47 +01:00
testdb_only.require
timezone.result
timezone2.result
timezone3.result
timezone4.result
timezone_grant.result
trigger-compat.result
trigger-grant.result
trigger-trans.result
trigger.result sql_insert.cc: 2007-03-20 00:46:19 +03:00
true.require
truncate.result Bug#5507: TRUNCATE does not work with views. 2007-04-12 23:21:37 +05:00
type_binary.result
type_bit.result
type_bit_innodb.result
type_blob.result Merge pilot.blaudden:/home/msvensson/mysql/mysql-5.0 2007-03-01 18:12:56 +01:00
type_date.result Fix for bugs 2007-03-29 09:08:30 +05:00
type_datetime.result Merge pilot.blaudden:/home/msvensson/mysql/mysql-5.0 2007-04-02 10:50:39 +02:00
type_decimal.result
type_enum.result
type_float.result Bug #24791: Union with AVG-groups generates wrong results 2007-03-22 10:56:47 +01:00
type_nchar.result
type_newdecimal-big.result
type_newdecimal.result Fix for bug #24558: Increasing decimal column length causes data loss 2007-03-15 12:06:06 +04:00
type_ranges.result
type_set.result Bug#27069 set with identical elements are created 2007-04-02 15:01:19 +05:00
type_time.result
type_timestamp.result
type_uint.result
type_varchar.result
type_year.result Fix for bugs 2007-03-29 09:08:30 +05:00
udf.result Bug#23491 MySQLDump prefix function call in a view by database name 2007-03-27 12:31:44 -04:00
union.result Bug#24791: Union with AVG-groups generates wrong results 2007-03-22 14:58:43 +01:00
update.result Merge epotemkin@bk-internal.mysql.com:/home/bk/mysql-4.1-opt 2007-03-05 23:33:57 +03:00
user_limits.result
user_var-binlog.result
user_var.result
varbinary.result Bug#22331: Wrong WHERE in EXPLAIN EXTENDED when all expressions were optimized 2007-03-10 00:29:02 +03:00
variables.result Bug#22648 LC_TIME_NAMES: Setting GLOBAL has no effect 2007-04-09 17:58:56 +05:00
view.result Bug #27786: 2007-04-20 10:49:45 +03:00
view_grant.result Merge sergbook.mysql.com:/usr/home/serg/Abk/mysql-5.0-build 2007-03-23 17:56:58 +02:00
view_query_cache.result
wait_timeout.result
warnings.result
windows.result Bug #27811: 2007-04-23 17:15:51 +03:00
xa.result