mariadb/mysql-test/r
Ramil Kalimullin e3de8d361e Fix for bug#37527: mysqlcheck fails to report entire database
when InnoDB frm file corruption

Problem: mysqlcheck runs 'SHOW FULL TABLE' queries to get table lists.
The query may fail for some reasons (e.g. null .frm file) then
mysqlcheck doesn't process the database tables.

Fix: try to run 'SHOW TABLES' if 'SHOW FULL TABLES' failed.


client/mysqlcheck.c:
  Fix for bug#37527: mysqlcheck fails to report entire database 
  when InnoDB frm file corruption
    - run "SHOW TABLES" query if "SHOW /*!50002 FULL*/ TABLES" failed;
    - print error info if both failed.
mysql-test/r/mysqlcheck.result:
  Fix for bug#37527: mysqlcheck fails to report entire database 
  when InnoDB frm file corruption
    - test result.
mysql-test/t/mysqlcheck.test:
  Fix for bug#37527: mysqlcheck fails to report entire database 
  when InnoDB frm file corruption
    - test case.
2008-11-14 11:40:46 +04:00
..
alias.result
almost_full.result
alter_table-big.result
alter_table.result
analyse.result
analyze.result
ansi.result
archive-big.result
archive.result
archive_gis.result
auto_increment.result
backup.result
bdb-alter-table-1.result
bdb-alter-table-2.result
bdb-crash.result
bdb-deadlock.result
bdb.result Partial rollback of fix for bug #30059: End-space truncation is inconsistent 2008-05-06 21:43:46 +05:00
bdb_cache.result
bdb_gis.result
bdb_notembedded.result
bench_count_distinct.result
big_test.require
bigint.result
binary.result
binlog.result Fix for bug#39182: Binary log producing incompatible character set query 2008-10-01 14:48:47 +05:00
binlog_index.result Post-merge fixes. 2008-04-01 12:29:53 +02:00
binlog_innodb.result Bug#36570: Parse error of CREATE PROCEDURE stmt with comments on \ 2008-05-15 19:13:24 -04:00
binlog_killed.result
binlog_killed_simulate.result post fix after push of BUG#33029 2008-03-27 13:42:34 +08:00
binlog_start_comment.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#27934 test client_xml misssing initialization 2008-07-18 14:07:16 +05:00
comments.result Bug#26030 (Parsing fails for stored routine w/multi-statement execution 2008-07-07 10:00:08 -06:00
compare.result Bug #39353: Multiple conditions on timestamp column crashes server 2008-09-18 15:55:36 +03:00
compress.result
connect.result
consistent_snapshot.result
constraints.result
count_distinct.result
count_distinct2.result
count_distinct3.result
create.result Bug#35924 DEFINER should be stored 'quoted' in I_S 2008-10-02 16:57:52 +05:00
create_not_windows.result
create_select_tmp.result
csv.result
ctype_ascii.result
ctype_big5.result
ctype_collate.result
ctype_cp932.result
ctype_cp932_binlog.result Fix for bug#39182: Binary log producing incompatible character set query 2008-10-01 14:48:47 +05:00
ctype_cp1250_ch.result
ctype_cp1251.result
ctype_create.result
ctype_eucjpms.result
ctype_euckr.result
ctype_gb2312.result
ctype_gbk.result Fixed bug #35993: memory corruption and crash with multibyte conversion. 2008-04-23 02:14:58 +05:00
ctype_hebrew.result
ctype_latin1.result
ctype_latin1_de.result
ctype_latin2.result
ctype_latin2_ch.result
ctype_ldml.result
ctype_many.result
ctype_mb.result
ctype_recoding.result
ctype_sjis.result
ctype_tis620.result
ctype_uca.result
ctype_ucs.result
ctype_ucs2_def.result
ctype_ucs_binlog.result
ctype_ujis.result
ctype_utf8.result
date_formats.result
default.result Bug #39002: The server crashes on the query: 2008-09-03 12:32:43 +05:00
delayed.result
delete.result
derived.result
dirty_close.result
distinct.result Bug#38311 - Fix of some cruft from remove_files in ndb_autodiscover.test, clean up of distinct.test, 2008-09-23 05:24:32 -04:00
drop.result
drop_temp_table.result
empty_table.result
endspace.result
error_simulation.result
errors.result
exampledb.result
execution_constants.result
explain.result
federated.result Fix for Bug#38184 : main.federated fails sporadically 2008-09-16 19:05:30 +02:00
federated_archive.result
federated_bug_13118.result
federated_bug_25714.result Fix for Bug#38762 main.federated_bug_25714 fails sporadically 2008-10-02 13:04:29 +02:00
federated_disabled.result Bug#37069 (5.0): implement --skip-federated 2008-06-03 13:12:37 +03:00
federated_innodb.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
fulltext2.result
fulltext3.result
fulltext_cache.result
fulltext_distinct.result
fulltext_left_join.result
fulltext_multi.result
fulltext_order_by.result
fulltext_update.result
fulltext_var.result
func_compress.result
func_concat.result Fixed bug #36488: regexp returns false matches, concatenating 2008-05-13 20:27:46 +05:00
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 Fix for bug #35298: GROUP_CONCAT with DISTINCT can crash the server 2008-05-01 13:49:26 +03:00
func_group.result
func_if.result Bug#37662 nested if() inside sum() is parsed in exponential time 2008-07-30 14:07:37 +03:00
func_in.result
func_isnull.result
func_like.result
func_math.result
func_misc.result Bug#35848: UUID() returns UUIDs with the wrong time 2008-07-10 03:58:30 +02:00
func_op.result
func_regexp.result Fix for bug #39021: SELECT REGEXP BINARY NULL never returns 2008-09-05 13:30:01 +05:00
func_sapdb.result
func_set.result
func_str.result
func_system.result
func_test.result
func_time.result
func_timestamp.result
gcc296.result
gis-rtree.result
gis.result
grant.result Patch clean up. 2008-03-27 09:37:20 -03:00
grant2.result
grant3.result
grant_cache.result
greedy_optimizer.result
group_by.result BUG#38072: Wrong result: HAVING not observed in a query with aggregate 2008-10-24 06:16:22 +04:00
group_min_max.result Bug#38195: Incorrect handling of aggregate functions when loose index scan is 2008-08-27 17:03:17 +04:00
handler.result
have_archive.require
have_bdb.require
have_big5.require
have_blackhole.require
have_bug25714.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_local_infile.require
have_log_bin.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 Partial rollback of fix for bug #30059: End-space truncation is inconsistent 2008-05-06 21:43:46 +05:00
heap_auto_increment.result
heap_btree.result
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 Bug#37943: Reproducible mysqld crash/sigsegv in sel_trees_can_be_ored 2008-10-01 18:50:55 +03:00
index_merge_bdb.result
index_merge_innodb.result
index_merge_innodb2.result
index_merge_ror.result
index_merge_ror_cpk.result
information_schema.result
information_schema_chmod.result
information_schema_db.result Bug#22763 Disrepancy between SHOW CREATE VIEW and I_S.VIEWS 2008-10-02 14:37:07 +05:00
information_schema_inno.result
init_connect.result
init_file.result
innodb-autoinc-optimize.result Cherry-pick InnoDB fixes for Bug#34286, Bug#35352, and Bug#36600 from snapshot 2008-07-31 15:47:57 -06:00
innodb-big.result
innodb-deadlock.result
innodb-lock.result
innodb-replace.result
innodb-ucs2.result
innodb.result Partial rollback of fix for bug #30059: End-space truncation is inconsistent 2008-05-06 21:43:46 +05:00
innodb_bug35220.result Cherry-pick fix for Bug#35220 from innodb-5.0-ss2475 snapshot. 2008-08-07 18:25:24 -06:00
innodb_cache.result
innodb_gis.result
innodb_handler.result
innodb_mysql.result Bug#37830 : ORDER BY ASC/DESC - no difference 2008-07-23 14:25:00 +03: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
is_debug_build.require
isam.result
join.result Fix for test for b-g#35754 which fails based on hostname ?= "localhost". 2008-10-06 08:18:13 -04:00
join_crash.result
join_nested.result
join_outer.result
key.result
key_cache.result
key_diff.result
key_primary.result
keywords.result
kill.result
limit.result Bug#37075: offset of limit clause might be truncated on 32-bits server w/o big tables 2008-10-15 18:34:51 -03:00
loaddata.result Bug#37114: sql_mode NO_BACKSLASH_ESCAPES does not work properly with LOAD DATA Bug#37114: sql_mode NO_BACKSLASH_ESCAPES does not work properly with LOAD DATA INFILE 2008-09-18 11:24:50 +02:00
loaddata_autocom_innodb.result
loaddata_autocom_ndb.result
lock.result
lock_multi.result Bug#38499: flush tables and multitable table update with 2008-10-09 20:24:31 +05:00
lock_tables_lost_commit.result
long_tmpdir.result
lowercase0.require
lowercase1.require
lowercase2.require
lowercase_fs_off.result
lowercase_mixed_tmpdir.result
lowercase_table.result
lowercase_table2.result
lowercase_table3.result
lowercase_table_grant.result
lowercase_table_qcache.result
lowercase_view.result
merge.result
metadata.result Bug #39283: Date returned as VARBINARY to client for queries 2008-10-10 15:13:12 +05:00
mix_innodb_myisam_binlog.result post fix after push of BUG#33029 2008-03-27 13:42:34 +08:00
multi_statement.result
multi_update.result post fix after push of BUG#33029 2008-03-27 13:42:34 +08:00
multi_update_tiny_hash.result Fixed bug#36676: multiupdate using LEFT JOIN updates only 2008-05-18 14:21:25 +05:00
myisam-blob.result
myisam.result Fix for bug #37310: 'on update CURRENT_TIMESTAMP' option crashes the table 2008-08-26 18:48:50 +05:00
myisampack.result
mysql.result Bug 38158: mysql client regression, can't read dump files 2008-07-18 13:24:59 +03:00
mysql_client_test.result
mysql_comments.result
mysql_protocols.result
mysql_upgrade.result
mysqladmin.result
mysqlbinlog-cp932.result
mysqlbinlog.result Bug#36570: Parse error of CREATE PROCEDURE stmt with comments on \ 2008-05-15 19:13:24 -04:00
mysqlbinlog2.result
mysqlcheck.result Fix for bug#37527: mysqlcheck fails to report entire database 2008-11-14 11:40:46 +04:00
mysqldump-compat.result
mysqldump-max.result
mysqldump-no-binlog.result
mysqldump.result merged 5.0-5.1.29-rc into 5.0-bugteam 2008-10-01 12:41:13 +03:00
mysqlshow.result
mysqltest.result
named_pipe.result
ndb_alter_table.result
ndb_alter_table2.result
ndb_auto_increment.result
ndb_autodiscover.result
ndb_autodiscover2.result
ndb_autodiscover3.result
ndb_backup_print.result
ndb_basic.result
ndb_bitfield.result
ndb_blob.result
ndb_bug26793.result
ndb_bug31477.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
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
ndb_restore_different_endian_data.result
ndb_restore_print.result
ndb_single_user.result
ndb_subquery.result
ndb_transaction.result
ndb_trigger.result
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
openssl_1.result
openssl_2.result
order_by.result Bug #39844: Query Crash Mysql Server 5.0.67 2008-10-16 21:37:17 +05:00
order_fill_sortbuf.result
outfile.result
outfile_loaddata.result
overflow.result
packet.result
parser.result Bug#26030 (Parsing fails for stored routine w/multi-statement execution 2008-07-07 10:00:08 -06:00
parser_precedence.result
parser_stack.result Bug#35577 (CREATE PROCEDURE causes either crash or syntax error depending on 2008-07-14 15:41:30 -06:00
perror.result
preload.result
ps.result Bug#26030 (Parsing fails for stored routine w/multi-statement execution 2008-07-07 10:00:08 -06:00
ps_1general.result Bug#37301 Length and Max_length differ with no obvious reason(2nd version) 2008-08-15 16:13:27 -04:00
ps_2myisam.result Bug#37301 Length and Max_length differ with no obvious reason(2nd version) 2008-08-15 16:13:27 -04:00
ps_3innodb.result Bug#37301 Length and Max_length differ with no obvious reason(2nd version) 2008-08-15 16:13:27 -04:00
ps_4heap.result Bug#37301 Length and Max_length differ with no obvious reason(2nd version) 2008-08-15 16:13:27 -04:00
ps_5merge.result Bug#37301 Length and Max_length differ with no obvious reason(2nd version) 2008-08-15 16:13:27 -04:00
ps_6bdb.result Bug#37301 Length and Max_length differ with no obvious reason(2nd version) 2008-08-15 16:13:27 -04:00
ps_7ndb.result Bug#37301 Length and Max_length differ with no obvious reason(2nd version) 2008-08-15 16:13:27 -04:00
ps_10nestset.result
ps_11bugs.result
ps_grant.result
query_cache.result Bug#30087 Set query_cache_size, if the value is too small, get a unclear warning 2008-07-16 16:29:22 -06:00
query_cache_merge.result Cherry-pick Bug#33362 from mysql-5.1 2008-07-24 11:14:34 -03:00
query_cache_notembedded.result
query_cache_with_views.result
raid.result
range.result
read_only.result
rename.result
repair.result Fixed bug #36055: mysql_upgrade doesn't really 'upgrade' tables 2008-05-12 21:01:13 +05:00
replace.result
rollback.result
round.result
row.result
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_auto_increment_bug33029.result post fix after push of BUG#33029 2008-03-27 13:42:34 +08:00
rpl_bug33931.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
rpl_critical_errors.result.txt
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_drop_view.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 Bug#22442, removed number of port 2008-10-26 22:34:24 +03:00
rpl_flush_tables.result
rpl_free_items.result
rpl_get_lock.result
rpl_grant.result Bug#35754: mysql_install_db does not work if no hostname is set 2008-09-24 08:59:56 -04:00
rpl_ignore_grant.result
rpl_ignore_revoke.result
rpl_ignore_table.result
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_map.result
rpl_loaddata_rule_m.result
rpl_loaddata_rule_s.result
rpl_loaddatalocal.result
rpl_locale.result
rpl_log.result Bug#32653. 2008-04-04 01:16:55 +04:00
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 Removing race conditions from rpl_packet causing test to fail. 2008-03-31 16:32:45 +02:00
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_id.result
rpl_server_id1.result
rpl_server_id2.result
rpl_session_var.result
rpl_set_charset.result
rpl_skip_error.result
rpl_slave_skip.result
rpl_slave_status.result
rpl_sp.result Fix for bug#39182: Binary log producing incompatible character set query 2008-10-01 14:48:47 +05:00
rpl_sp_effects.result
rpl_sporadic_master.result
rpl_ssl.result
rpl_start_stop_slave.result
rpl_temporary.result
rpl_timezone.result
rpl_transaction.result
rpl_trigger.result
rpl_trunc_temp.result
rpl_until.result
rpl_user.result post fix after push of BUG#33029 2008-03-27 13:42:34 +08:00
rpl_user_variables.result
rpl_variables.result
rpl_view.result Bug#32575 - Parse error of stmt with extended comments on slave side 2008-05-08 09:41:22 +02:00
schema.result
select.result
select_found.result
select_safe.result
server_id.require
server_id1.require
shm.result
show_check.result Bug#37301 Length and Max_length differ with no obvious reason(2nd version) 2008-08-15 16:13:27 -04:00
skip_grants.result
skip_name_resolve.result
slave-running.result
slave-stopped.result
sp-big.result
sp-code.result
sp-destruct.result
sp-dynamic.result
sp-error.result Bug#37949 Crash if argument to SP is a subquery that returns more than one row 2008-09-29 19:11:34 +05:00
sp-prelocking.result
sp-security.result
sp-threads.result
sp-ucs2.result
sp-vars.result
sp.result Bug #33811: Call to stored procedure with SELECT * / RIGHT JOIN 2008-10-17 17:55:06 +03:00
sp_notembedded.result
sp_stress_case.result
sp_trans.result
sp_trans_log.result
sql_mode.result
ssl-big.result
ssl.result
ssl_8k_key.result
ssl_compress.result
ssl_connect.result
status.result
status2.result Fixed race condition in test case status2. A 'disconnect' issues an 2008-10-31 10:25:03 +01:00
strict.result Partial rollback of fix for bug #30059: End-space truncation is inconsistent 2008-05-06 21:43:46 +05:00
strict_autoinc_1myisam.result
strict_autoinc_2innodb.result
strict_autoinc_3heap.result
strict_autoinc_4bdb.result
strict_autoinc_5ndb.result
subselect.result Fixed bug #38191. 2008-07-26 13:44:07 -07:00
subselect2.result
subselect3.result Bug #37894: Assertion in init_read_record_seq in handler.h line 1444 2008-10-10 15:27:58 +05:00
subselect_gis.result
subselect_innodb.result
subselect_notembedded.result
sum_distinct-big.result
sum_distinct.result
symlink.result merging fixes 2008-08-26 14:21:07 +05:00
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
type_binary.result Partial rollback of fix for bug #30059: End-space truncation is inconsistent 2008-05-06 21:43:46 +05:00
type_bit.result Bug #37799: SELECT with a BIT column in WHERE clause 2008-08-28 02:10:37 +05:00
type_bit_innodb.result
type_blob.result Merge zippy.cornsilk.net:/home/cmiller/work/mysql/bug15776/my50-bug15776 2008-04-09 12:27:51 -04:00
type_date.result
type_datetime.result Fix for bug#37526: asymertic operator <=> in trigger 2008-09-09 20:05:27 +05:00
type_decimal.result Bug#36023: Incorrect handling of zero length caused an assertion to fail. 2008-04-25 00:39:37 +04:00
type_enum.result
type_float.result
type_nchar.result
type_newdecimal-big.result
type_newdecimal.result Bug#36270: incorrect calculation result - works in 4.1 but not in 5.0 or 5.1 2008-08-15 15:46:21 -04:00
type_ranges.result
type_set.result
type_time.result
type_timestamp.result
type_uint.result
type_varchar.result
type_year.result
udf.result Bug#37428 Potential security issue with UDFs - linux shellcode execution. 2008-08-25 17:11:59 +05:00
udf_skip_grants.result
union.result
update.result
user_limits.result
user_var-binlog.result
user_var.result
varbinary.result backport from 6.0 2008-06-27 20:56:41 +05:00
variables-big.result
variables.result
view.result Bug#39040 valgrind errors/crash when creating views with binlog logging enabled 2008-10-27 14:22:38 +04:00
view_grant.result
wait_timeout.result
warnings.result Partial rollback of fix for bug #30059: End-space truncation is inconsistent 2008-05-06 21:43:46 +05:00
windows.result Bug #39958: Test "windows" lacks a cleanup 2008-10-16 14:16:27 +03:00
xa.result Post-merge fix: drop table at the end of test. 2008-10-21 19:02:26 -02:00