mariadb/mysql-test/r
unknown d886ea8fb6 Fixed bug #28375: a query with an NOT IN subquery predicate may cause
a crash when the left operand of the predicate is evaluated to NULL.
It happens when the rows from the inner tables (tables from the subquery)
are accessed by index methods with key values obtained by evaluation of
the left operand of the subquery predicate. When this predicate is
evaluated to NULL an alternative access with full table scan is used
to check whether the result set returned by the subquery is empty or not.
The crash was due to the fact the info about the access methods used for
regular key values was not properly restored after a switch back from the
full scan access method had occurred.
The patch restores this info properly.
The same problem existed for queries with IN subquery predicates if they
were used not at the top level of the queries.


mysql-test/r/subselect3.result:
  Added a test case for bug #28375.
mysql-test/t/subselect3.test:
  Added a test case for bug #28375.
sql/item_subselect.cc:
  Fixed bug #28375: a query with an NOT IN subquery predicate may cause
  a crash when the left operand of the predicate is evaluated to NULL.
  It happens when the rows from the inner tables (tables from the subquery)
  are accessed by index methods with key values obtained by evaluation of
  the left operand of the subquery predicate. When this predicate is
  evaluated to NULL an alternative access with full table scan is used
  to check whether the result set returned by the subquery is empty or not.
  The crash was due to the fact the info about the access methods used for
  regular key values was not properly restored after a switch back from the
  full scan access method had occurred.
  The patch restores this info properly.
sql/sql_select.h:
  Fixed bug #28375: a query with an NOT IN subquery predicate may cause
  a crash when the left operand of the predicate is evaluated to NULL.
  In the JOIN_TAB structure two fields have been added to save info about
  index methods used to access the subquery rows. The saved info is used
  after a switch back from the alternative full scan access method has 
  occurred. The full scan is used when the left operand of the subquery
  predicate is evaluated to NULL.
2007-05-11 19:37:32 -07:00
..
alias.result
alter_table-big.result
alter_table.result Fixed bug #20710. 2007-04-29 00:50:33 +05: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 Fix for bug #24912 "problems with bigint in abs() ceiling() round() truncate() mod()" and a number of related problems: 2007-04-28 20:01:01 +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 Merge mysql.com:/home/hf/work/27921/my50-27921 2007-05-11 18:13:06 +05:00
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
ctype_cp932_binlog.result
ctype_cp932_notembedded.result
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
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
delete.result
derived.result
dirty_close.result
distinct.result Bug#27590: Wrong DATE/DATETIME comparison. 2007-04-27 00:12:09 +04: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
federated.result
federated_archive.result
federated_bug_13118.result
fix_priv_tables.result
flush.result
flush2.result
flush_block_commit.result
flush_block_commit_notembedded.result
flush_read_lock_kill.result
flush_table.result
foreign_key.result
fulltext.result Merge mysql.com:/home/svoj/devel/mysql/BUG25951/mysql-4.1-engines 2007-04-18 12:39:04 +05:00
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
func_des_encrypt.result
func_encrypt.result
func_encrypt_nossl.result
func_equal.result
func_gconcat.result
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 Bug#28133: Wrong DATE/DATETIME comparison in IN() function. 2007-05-07 22:20:43 +04:00
func_isnull.result
func_like.result
func_math.result Fix for bug #24912 "problems with bigint in abs() ceiling() round() truncate() mod()" and a number of related problems: 2007-04-28 20:01:01 +04:00
func_misc.result
func_op.result
func_regexp.result
func_sapdb.result
func_set.result
func_str.result Bug #27530: 2007-04-11 13:58:16 +03:00
func_system.result
func_test.result
func_time.result
func_timestamp.result
gcc296.result
gis-rtree.result
gis.result Merge pilot.blaudden:/home/msvensson/mysql/mysql-5.0 2007-04-02 10:50:39 +02:00
grant.result grant.result, grant.test: 2007-05-12 00:46:07 +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
have_symlink.require
have_tis620.require
have_ucs2.require
have_udf.require
have_udf_example.require
have_ujis.require
having.result
heap.result Adjusted results after the fix for bug #20710. 2007-04-29 05:06:14 +05:00
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
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
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 Apply innodb-5.0-ss1405 snapshot 2007-04-18 19:36:22 -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 Fixed bug #28189: in some rare cases optimizer preferred a more expensive 2007-05-10 00:06:24 -07:00
innodb_notembedded.result
innodb_timeout_rollback.result
innodb_unsafe_binlog.result
insert.result
insert_notembedded.result
insert_select-binlog.result
insert_select.result
insert_update.result Fixed bug #28000. 2007-05-11 03:17:05 +05:00
is_debug_build.require
isam.result
join.result Merge magare.gmz:/home/kgeorge/mysql/work/B27531-4.1-opt 2007-05-04 16:47:58 +03:00
join_crash.result
join_nested.result
join_outer.result Fixed bug #28188: performance degradation for outer join queries to which 2007-05-01 23:34:14 -07:00
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 loaddata.result, loaddata.test: 2007-05-09 14:46:11 +04:00
loaddata_autocom_innodb.result
loaddata_autocom_ndb.result
lock.result
lock_multi.result
lock_tables_lost_commit.result
lowercase0.require
lowercase1.require Bug #27653: Temp table can't be created if lower_case_table_names=1 and 2007-04-30 23:16:46 +02:00
lowercase2.require
lowercase_fs_off.result
lowercase_mixed_tmpdir.result Bug #27653: Temp table can't be created if lower_case_table_names=1 and 2007-04-30 23:16:46 +02:00
lowercase_table.result
lowercase_table2.result
lowercase_table3.result
lowercase_table_grant.result
lowercase_table_qcache.result
lowercase_view.result
merge.result Merge mysql.com:/home/svoj/devel/mysql/BUG24342/mysql-4.1-engines 2007-04-18 16:22:23 +05: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 Update test to work also when --pager does not exist in "mysql" 2007-04-23 12:58:35 +02:00
mysql_client_test.result
mysql_protocols.result
mysql_upgrade.result Add replace for varying errno 2007-04-19 21:35:10 +02:00
mysqladmin.result
mysqlbinlog-cp932.result
mysqlbinlog.result Add correct replace 2007-03-31 17:18:03 +02:00
mysqlbinlog2.result
mysqlcheck.result
mysqldump-max.result
mysqldump.result Bug#27293: mysqldump crashes when dumping procedure defined by different user 2007-04-30 11:30:07 +02:00
mysqlshow.result
mysqltest.result Merge pilot.blaudden:/home/msvensson/mysql/mysql-4.1-maint 2007-04-10 17:33:21 +02: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_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_insert.test, ndb_insert.result, ha_ndbcluster.cc: 2007-05-02 10:02:27 +02:00
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
ndb_single_user.result Bug #27710 Creating unique index fails during single user mode 2007-04-16 14:07:31 +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 Post-merge fix. 2007-04-29 20:14:35 -07:00
openssl_1.result Bug#27669 mysqldump: Got error: 2026: SSL connection error when trying to connect 2007-04-11 23:42:53 +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 Bug#28181 Access denied to 'information_schema when select into out file (regression) 2007-05-04 14:41:58 +05:00
overflow.result
packet.result
perror.result
preload.result
ps.result
ps_1general.result
ps_2myisam.result Bug#27590: Wrong DATE/DATETIME comparison. 2007-04-27 00:12:09 +04:00
ps_3innodb.result Bug#27590: Wrong DATE/DATETIME comparison. 2007-04-27 00:12:09 +04:00
ps_4heap.result Bug#27590: Wrong DATE/DATETIME comparison. 2007-04-27 00:12:09 +04:00
ps_5merge.result Bug#27590: Wrong DATE/DATETIME comparison. 2007-04-27 00:12:09 +04:00
ps_6bdb.result Additional fix for the bug#27590. 2007-04-28 00:04:50 +04:00
ps_7ndb.result Additional fix for the bug#27590. 2007-04-28 00:04:50 +04:00
ps_10nestset.result
ps_11bugs.result
ps_grant.result
query_cache.result Bug#16377: Wrong DATE/DATETIME comparison in BETWEEN function. 2007-04-27 00:40:35 +04:00
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
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
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
rpl_ps.result
rpl_redirect.result
rpl_relayrotate.result
rpl_relayspace.result
rpl_replicate_do.result
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 Add replace_result for things that are not tested 2007-04-11 09:06:27 +02: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
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
sp-prelocking.result
sp-security.result
sp-threads.result
sp-ucs2.result
sp-vars.result Bug#27759: Wrong DATE/DATETIME comparison in LEAST()/GREATEST() functions. 2007-05-04 18:57:10 +04:00
sp.result Merge weblab.(none):/home/marcsql/TREE/mysql-5.0-base 2007-04-20 15:34:04 -06:00
sp_notembedded.result
sp_stress_case.result
sp_trans.result
sql_mode.result
ssl.result
ssl_compress.result
ssl_connect.result
status.result
strict.result Merge mysql.com:/home/ram/work/mysql-5.0-maint 2007-04-19 12:32:38 +05:00
strict_autoinc_1myisam.result
strict_autoinc_2innodb.result
strict_autoinc_3heap.result
strict_autoinc_4bdb.result
strict_autoinc_5ndb.result
subselect.result Merge gkodinov@bk-internal.mysql.com:/home/bk/mysql-5.0-opt 2007-05-04 10:57:14 +03:00
subselect2.result
subselect3.result Fixed bug #28375: a query with an NOT IN subquery predicate may cause 2007-05-11 19:37:32 -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
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
true.require
truncate.result reverted the fix for Bug#5507 2007-04-17 12:32:01 +02:00
type_binary.result
type_bit.result
type_bit_innodb.result
type_blob.result
type_date.result Fix for bugs 2007-03-29 09:08:30 +05:00
type_datetime.result merging fixes 2007-05-11 20:56:22 +05:00
type_decimal.result
type_enum.result
type_float.result
type_nchar.result
type_newdecimal-big.result
type_newdecimal.result Bug #27957 cast as decimal does not check overflow, also inconsistent with group, subselect 2007-05-09 17:27:14 +05: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
update.result Fix for bug #22364 "Inconsistent "matched rows" when executing UPDATE" 2007-04-23 18:22:33 +04:00
user_limits.result
user_var-binlog.result
user_var.result
varbinary.result
variables-big.result Bug #27322 failure to allocate transaction_prealloc_size causes crash 2007-04-12 18:03:26 -04:00
variables.result Bug#22648 LC_TIME_NAMES: Setting GLOBAL has no effect 2007-04-09 17:58:56 +05:00
view.result Bug #27921 View ignores precision for CAST() 2007-05-10 00:17:21 +05:00
view_grant.result
view_query_cache.result
wait_timeout.result
warnings.result
windows.result Bug #27811: 2007-04-23 17:15:51 +03:00
xa.result