mariadb/mysql-test/t
unknown 22639a066c Bug #50914 mysqlbinlog not handling drop of current default database
mysqlbinlog only prints "use $database" statements to its output stream
when the active default database changes between events. This will cause
"No Database Selected" error when dropping and recreating that database.

To fix the problem, we clear print_event_info->db when printing an event
of CREATE/DROP/ALTER database statements, so that the Query_log_event
after such statements will be printed with the use 'db' anyway except
transaction keywords.

mysql-test/r/mysqlbinlog.result:
  Test result for Bug#50914.
mysql-test/t/mysqlbinlog.test:
  Added test to verify if the approach of the mysqlbinlog prints
  "use $database" statements to its output stream will cause
  "No Database Selected" error when dropping and recreating
  that database.
sql/log_event.cc:
  Updated code to clear print_event_info->db when printing an event
  of CREATE/DROP/ALTER database statements, so that the Query_log_event
  after such statements will be printed with the use 'db' anyway except
  transaction keywords.
2010-12-29 11:52:57 +08:00
..
1st.test
alias.test
almost_full.test
alter_table-big.test Bug #49741 test files contain explicit references to bin/relay-log positions 2010-05-24 21:54:08 +08:00
alter_table.test
analyse.test
analyze.test
ansi.test
archive-big.test
archive.test
archive_bitfield.test
archive_gis.test
auto_increment.test Bug#39828 : Autoinc wraps around when offset and increment > 1 2010-12-13 14:48:12 +03:00
backup-master.sh
backup.test
bench_count_distinct.test
bigint.test
binary.test
bool.test
bootstrap.test
bug39022.test A 5.1-only version of fix for bug #46947 "Embedded SELECT 2010-05-28 00:07:40 +04:00
bug46080-master.opt
bug46080.test
bug46261-master.opt
bug46261.test
bug46760-master.opt
bug46760.test
bug47671-master.opt
bug47671.test
bulk_replace.test
cache_innodb-master.opt
cache_innodb.test
case.test
cast.test
change_user-master.opt
change_user.test Assorted post-merge fixes, clean-up, integration, compat with 5.6. 2010-11-25 03:11:05 +00:00
check.test
client_xml.test
comments.test
commit_1innodb.test
compare.test
compress.test
concurrent_innodb_safelog-master.opt
concurrent_innodb_safelog.test
concurrent_innodb_unsafelog-master.opt
concurrent_innodb_unsafelog.test
connect.test Bug #49752: 2469.126.2 unintentionally breaks authentication against 2010-11-11 07:34:14 +00:00
consistent_snapshot.test
constraints.test
contributors.test
count_distinct.test
count_distinct2-master.opt
count_distinct2.test
count_distinct3.test
crash_commit_before-master.opt
crash_commit_before.test
create-big.test Bug #49741 test files contain explicit references to bin/relay-log positions 2010-05-24 21:54:08 +08:00
create.test
create_not_windows.test
create_select_tmp.test
csv.test
csv_alter_table.test
csv_not_null.test
ctype_ascii.test
ctype_big5.test
ctype_collate.test
ctype_cp932_binlog_row.test
ctype_cp932_binlog_stm.test Bug #49741 test files contain explicit references to bin/relay-log positions 2010-05-24 21:54:08 +08:00
ctype_cp1250_ch.test
ctype_cp1251.test Bug#56639 Character Euro (0x88) not converted from cp1251 to utf8 2010-11-26 16:58:54 +03:00
ctype_create.test
ctype_eucjpms.test
ctype_euckr.test
ctype_filename.test
ctype_filesystem-master.opt
ctype_filesystem.test
ctype_gb2312.test
ctype_gbk.test
ctype_gbk_binlog.test
ctype_hebrew.test
ctype_latin1.test Bug#58022 ... like ... escape export_set ( ... ) crashes when export_set returns warnings 2010-11-18 11:53:08 +03:00
ctype_latin1_de-master.opt
ctype_latin1_de.test
ctype_latin2.test
ctype_latin2_ch.test
ctype_ldml-master.opt
ctype_ldml.test
ctype_many.test
ctype_mb.test
ctype_recoding.test
ctype_sjis.test
ctype_tis620.test
ctype_uca.test
ctype_ucs.test
ctype_ucs2_def-master.opt
ctype_ucs2_def.test
ctype_ujis.test Bug#57257 Replace(ExtractValue(...)) causes MySQL crash 2010-11-11 13:25:23 +03:00
ctype_ujis_ucs2.test
ctype_utf8.test Fix for bug#57272: crash in rpad() when using utf8 2010-10-12 23:25:40 +04:00
date_formats-master.opt
date_formats.test Bug#58005 utf8 + get_format causes failed assertion: !str || str != Ptr' 2010-11-12 13:12:15 +03:00
ddl_i18n_koi8r.test
ddl_i18n_utf8.test
deadlock_innodb.test
debug_sync.test
default.test
delayed.test
delete.test Bug #53034: Multiple-table DELETE statements not accepting 2010-08-31 02:16:38 +04:00
derived.test Fixed following problems: 2010-12-14 12:33:03 +03:00
dirty_close.test
disabled.def Bug#58197: main.variables-big fails on windows 2010-11-15 16:17:38 +01:00
distinct.test
drop.test
empty_table.test
endspace.test
error_simulation.test Fix of bad merge of test case for Bug#41660 (test case moved). 2010-06-29 10:28:17 +02:00
errors.test
events_1.test
events_2.test
events_bugs-master.opt
events_bugs.test
events_embedded.test
events_grant.test
events_logs_tests-master.opt
events_logs_tests.test
events_microsec.test
events_restart-master.opt
events_restart.test
events_scheduling.test
events_stress.test
events_time_zone.test
events_trans.test
events_trans_notembedded.test
exampledb.test
execution_constants.test
explain.test Bug#56814 Explain + subselect + fulltext crashes server 2010-10-18 16:12:27 +04:00
fix_priv_tables.test
flush.test
flush2-master.opt
flush2.test
flush_block_commit.test
flush_block_commit_notembedded.test Bug #49741 test files contain explicit references to bin/relay-log positions 2010-05-24 21:54:08 +08:00
flush_read_lock_kill-master.opt
flush_read_lock_kill.test
flush_table.test
foreign_key.test
fulltext.test Bug#54484 explain + prepared statement: crash and Got error -1 from storage engine 2010-10-18 14:47:26 +04:00
fulltext2.test
fulltext3.test
fulltext_cache.test
fulltext_distinct.test
fulltext_left_join.test
fulltext_multi.test
fulltext_order_by.test
fulltext_plugin-master.opt
fulltext_plugin.test
fulltext_update.test
fulltext_var.test
func_compress.test
func_concat.test
func_crypt.test
func_date_add.test
func_default.test
func_des_encrypt.test
func_encrypt-master.opt
func_encrypt.test
func_encrypt_nossl.test
func_equal.test
func_gconcat.test Bug#58396 group_concat and explain extended are still crashy 2010-12-13 13:39:26 +03:00
func_group.test test case fix 2010-12-21 15:30:07 +03:00
func_group_innodb.test
func_if.test
func_in.test Bug#54477: Crash on IN / CASE with NULL arguments 2010-06-22 22:53:08 +04:00
func_isnull.test Bug#53933 crash when using uncacheable subquery in the having clause of outer query 2010-06-08 10:22:40 +04:00
func_like.test Fix for bug #54575: crash when joining tables with unique set column 2010-06-20 02:02:58 +04:00
func_math.test Bug#57810 case/when/then : Assertion failed: length || !scale 2010-12-24 14:05:04 +03:00
func_misc.test Fix for bug#57283: inet_ntoa() crashes 2010-10-12 23:28:03 +04:00
func_op.test
func_regexp.test
func_rollback.test
func_sapdb.test
func_set.test
func_str.test Bug#57818 string conversion function died 2010-12-14 19:08:25 +03:00
func_system.test
func_test.test
func_time.test Bug #52160: crash and inconsistent results when grouping 2010-10-31 19:04:38 +03:00
func_timestamp.test
gcc296.test
gis-rtree.test
gis.test Manual resolve of mysql-test/r/gis.result 2010-09-07 13:34:18 +02:00
grant.test Fixed bug#36742 - GRANT hostname case handling inconsistent. 2010-10-13 12:28:58 +07:00
grant2.test
grant3-master.opt
grant3.test Follow up for bug#36742. Changed test case for bug#19828 2010-10-18 21:03:53 +07:00
grant_cache_no_prot.test
grant_cache_ps_prot.test
grant_lowercase_fs.test
greedy_optimizer.test
group_by.test Bug#57688 Assertion `!table || (!table->write_set || bitmap_is_set(table->write_set, field 2010-10-29 12:23:06 +04:00
group_min_max.test Bug#53859: Valgrind: opt_sum_query(TABLE_LIST*, List<Item>&, 2010-06-11 09:38:29 +02:00
group_min_max_innodb.test
handler_innodb.test
handler_myisam.test Fix for bug #54007: assert in ha_myisam::index_next, HANDLER 2010-06-09 14:45:04 +04:00
having.test Bug#54416 MAX from JOIN with HAVING returning NULL with 5.1 and Empty set 2010-07-09 14:39:47 +04:00
heap.test
heap_auto_increment.test
heap_btree.test
heap_hash.test
help.test
index_merge_innodb.test
index_merge_myisam.test
information_schema.test Bug#54422 query with = 'variables' 2010-06-25 12:01:47 +04:00
information_schema_chmod.test
information_schema_db.test
information_schema_inno.test
information_schema_part.test
init_connect-master.opt
init_connect.test
init_file-master.opt
init_file.test BUG#49978: Replication tests don't clean up replication state at the end 2010-12-19 18:07:28 +01:00
innodb_ignore_builtin-master.opt
innodb_ignore_builtin.test
innodb_mysql_lock2.test A 5.1-only version of fix for bug #46947 "Embedded SELECT 2010-05-28 00:07:40 +04:00
insert.test Bug #54106 assert in Protocol::end_statement, 2010-08-09 13:39:59 +02:00
insert_notembedded.test
insert_select.test
insert_update.test
join.test Post fix following fix for bug55531: Disabling testcase for 2010-09-07 15:43:00 +02:00
join_crash.test
join_nested.test
join_outer.test Bug#57688 Assertion `!table || (!table->write_set || bitmap_is_set(table->write_set, field 2010-10-29 12:23:06 +04:00
join_outer_innodb.test
key.test
key_cache-master.opt Bug #57840 MTR: parallel execution breaks with smart ordering of test cases 2010-11-05 15:26:38 +01:00
key_cache.test Assorted post-merge fixes, clean-up, integration, compat with 5.6. 2010-11-25 03:11:05 +00:00
key_diff.test
key_primary.test
keywords.test
kill.test
limit.test
loaddata.test Bug #51876: crash/memory underrun when loading data with ucs2 2010-07-14 14:54:51 +03:00
loaddata_autocom_innodb.test
locale.test
lock.test
lock_multi.test
lock_multi_bug38499.test
lock_multi_bug38691.test
lock_sync.test A 5.1-only version of fix for bug #46947 "Embedded SELECT 2010-05-28 00:07:40 +04:00
lock_tables_lost_commit-master.opt
lock_tables_lost_commit.test
log_state-master.opt
log_state.test
log_tables-big-master.opt
log_tables-big.test
log_tables-master.opt
log_tables.test A fix and a test case for Bug#47924 -main.log_tables times out 2010-11-07 23:42:54 +06:00
log_tables_debug.test
log_tables_upgrade.test
long_tmpdir-master.opt
long_tmpdir-master.sh
long_tmpdir.test
lowercase_fs_off.test
lowercase_mixed_tmpdir-master.opt
lowercase_mixed_tmpdir-master.sh
lowercase_mixed_tmpdir.test
lowercase_mixed_tmpdir_innodb-master.opt
lowercase_mixed_tmpdir_innodb-master.sh
lowercase_mixed_tmpdir_innodb.test
lowercase_table-master.opt
lowercase_table.test
lowercase_table2.test
lowercase_table3-master.opt
lowercase_table3.test
lowercase_table4-master.opt Bug #46941 crash with lower_case_table_names=2 and foreign key 2010-10-19 12:27:09 +02:00
lowercase_table4.test Bug #46941 crash with lower_case_table_names=2 and foreign key 2010-10-19 12:27:09 +02:00
lowercase_table_grant-master.opt
lowercase_table_grant.test
lowercase_table_qcache-master.opt
lowercase_table_qcache.test
lowercase_utf8-master.opt
lowercase_utf8.test
lowercase_view-master.opt
lowercase_view.test Bug #53095: SELECT column_name FROM INFORMATION_SCHEMA.STATISTICS 2010-06-25 15:59:44 +03:00
merge-big.test
merge.test
merge_innodb.test
metadata.test
mix2_myisam.test
mix2_myisam_ucs2.test
multi_statement-master.opt
multi_statement.test
multi_update-master.opt
multi_update.test Fixed following problems: 2010-12-14 12:33:03 +03:00
multi_update2-master.opt
multi_update2.test
multi_update_tiny_hash-master.opt
multi_update_tiny_hash.test
myisam-blob-master.opt
myisam-blob.test
myisam-system.test
myisam.test
myisam_crash_before_flush_keys-master.opt
myisam_crash_before_flush_keys.test
myisam_debug.test
myisampack.test
mysql-bug41486.test
mysql-bug45236.test
mysql.test Additional fix for bug#54899 2010-12-01 12:25:31 +05:30
mysql_client_test-master.opt
mysql_client_test.test Bug#54041: MySQL 5.0.92 fails when tests from Connector/C suite run 2010-07-30 09:17:10 -03:00
mysql_comments.sql
mysql_comments.test
mysql_cp932.test
mysql_delimiter.sql
mysql_delimiter_19799.sql
mysql_delimiter_source.sql
mysql_protocols.test
mysql_upgrade.test Bug #53613: mysql_upgrade incorrectly revokes TRIGGER privilege on given table 2010-07-01 12:05:09 +03:00
mysqladmin.test
mysqlbinlog-cp932-master.opt
mysqlbinlog-cp932.test
mysqlbinlog-master.opt Bug #57840 MTR: parallel execution breaks with smart ordering of test cases 2010-11-05 15:26:38 +01:00
mysqlbinlog.test Bug #50914 mysqlbinlog not handling drop of current default database 2010-12-29 11:52:57 +08:00
mysqlbinlog2.test
mysqlbinlog_base64.test
mysqlbinlog_row.test
mysqlbinlog_row_big.test
mysqlbinlog_row_innodb.test
mysqlbinlog_row_myisam.test
mysqlbinlog_row_trans.test
mysqlcheck.test
mysqldump-compat.opt
mysqldump-compat.test
mysqldump-max.test
mysqldump-no-binlog-master.opt
mysqldump-no-binlog.test
mysqldump.test
mysqldump_restore.test
mysqlhotcopy_archive.test Patch for bug#52913 including all review results and changes of date format. 2010-06-03 10:31:26 +02:00
mysqlhotcopy_myisam.test Patch for bug#52913 including all review results and changes of date format. 2010-06-03 10:31:26 +02:00
mysqlshow.test
mysqlslap.test
mysqltest.test merge 2010-12-16 16:40:52 +02:00
named_pipe-master.opt
named_pipe.test
negation_elimination.test
no-threads-master.opt
no-threads.test
no_binlog.test
not_embedded_server-master.opt
not_embedded_server.test
not_partition.test
null.test
null_key.test
odbc.test
olap.test
openssl_1.test
order_by.test Bug #50394: Regression in EXPLAIN with index scan, LIMIT, GROUP BY and 2010-09-13 13:33:19 +02:00
order_fill_sortbuf-master.opt
order_fill_sortbuf.test
outfile.test
outfile_loaddata.test
overflow.test
packet.test
parser.test
parser_bug21114_innodb.test
parser_not_embedded.test
parser_precedence.test
parser_stack.test
partition-master.opt
partition.test Bug#55458: Partitioned MyISAM table gets crashed by multi-table update 2010-09-30 15:57:33 +02:00
partition_archive.test
partition_binlog_stmt.test Bug#51851: Server with SBR locks mutex twice on 2010-10-01 13:39:04 +02:00
partition_blackhole.test
partition_bug18198.test
partition_charset.test
partition_csv.test
partition_datatype.test
partition_debug_sync.test
partition_disabled-master.opt
partition_disabled.test
partition_error.test Bug #56709: Memory leaks at running the 5.1 test suite 2010-09-22 23:33:18 +04:00
partition_federated.test
partition_grant.test
partition_hash.test
partition_innodb-master.opt
partition_innodb.test merging. 2010-10-15 20:13:35 +05:00
partition_innodb_builtin.test
partition_innodb_plugin.test post-push fix for test to pass on windows 2010-11-15 23:27:37 +01:00
partition_innodb_semi_consistent-master.opt
partition_innodb_semi_consistent.test
partition_innodb_stmt.test
partition_list.test
partition_mgm.test
partition_mgm_err.test
partition_mgm_err2.test
partition_not_blackhole-master.opt Bug#46086: crash when dropping a partitioned table 2010-07-08 14:36:55 +02:00
partition_not_blackhole.test post push test fix 2010-08-20 21:17:51 +02:00
partition_not_embedded.test
partition_not_windows-master.opt
partition_not_windows.test
partition_open_files_limit-master.opt
partition_open_files_limit.test
partition_order.test
partition_pruning.test Bug#53806: Wrong estimates for range query in partitioned MyISAM table 2010-08-26 17:14:18 +02:00
partition_range.test Bug#54444: Do not run main.range test for products without partitioning 2010-08-11 14:13:59 +02:00
partition_rename_longfilename.test
partition_symlink.test
partition_windows.test
perror-win.test
perror.test
plugin-master.opt
plugin.test
plugin_load-master.opt
plugin_load.test
plugin_not_embedded-master.opt
plugin_not_embedded.test BUG#58246: INSTALL PLUGIN not secure & crashable 2010-12-02 09:13:31 +01:00
preload.test
profiling.test
ps-master.opt
ps.test Bug#54488 crash when using explain and prepared statements with subqueries 2010-10-01 14:08:38 +04:00
ps_1general.test
ps_2myisam.test
ps_3innodb.test Bug#38999 valgrind warnings for update statement in function compare_record() 2010-06-09 16:07:34 +04:00
ps_4heap.test
ps_5merge.test
ps_10nestset.test
ps_11bugs.test
ps_ddl.test
ps_ddl1.test
ps_grant.test
ps_not_windows.test
query_cache.test
query_cache_28249.test
query_cache_debug.test
query_cache_merge.test
query_cache_notembedded.test
query_cache_ps_no_prot.test
query_cache_ps_ps_prot.test
query_cache_with_views.test
range.test Bug #54802: 'NOT BETWEEN' evaluation is incorrect 2010-08-24 19:51:32 +04:00
read_many_rows_innodb.test
read_only.test
read_only_innodb.test
rename.test
renamedb.test Bug #53804: serious flaws in the alter database .. upgrade 2010-05-21 22:47:32 +04:00
repair.test
replace.test
rollback.test
round.test
row.test Bug #54190: Comparison to row subquery produces incorrect 2010-09-09 16:46:13 +04:00
rowid_order_innodb.test
schema.test Bug #54360 Deadlock DROP/ALTER/CREATE DATABASE with open HANDLER 2010-06-26 19:36:00 +02:00
select.test Accidentally pushed test changes (#54459) removed. 2010-06-24 21:13:08 +04:00
select_found.test
select_safe.test
shm-master.opt
shm.test
show_check-master.opt
show_check.test
skip_grants-master.opt
skip_grants.test
skip_log_bin-master.opt
skip_log_bin.test
skip_name_resolve-master.opt
skip_name_resolve.test
sp-big.test
sp-bugs.test Fixed bug#54375 - Error in stored procedure leaves connection 2010-11-11 10:52:51 +06:00
sp-code.test
sp-destruct.test
sp-dynamic.test
sp-error.test
sp-fib.test
sp-prelocking.test
sp-security.test
sp-threads.test
sp-ucs2.test
sp-vars.test
sp.test
sp_gis.test
sp_notembedded.test
sp_stress_case.test
sp_sync.test
sp_trans.test
sp_trans_log.test Bug #49741 test files contain explicit references to bin/relay-log positions 2010-05-24 21:54:08 +08:00
sql_mode.test
ssl-big.test
ssl.test
ssl_8k_key-master.opt Bug#53463: YaSSL patch appears to be reverted 2010-07-28 12:59:19 -03:00
ssl_8k_key.test
ssl_compress.test
ssl_connect.test
status-master.opt
status.test
status2.test
strict.test
strict_autoinc_1myisam.test
strict_autoinc_2innodb.test
strict_autoinc_3heap.test
subselect.test
subselect2.test
subselect3.test
subselect4.test Bug#51070: Query with a NOT IN subquery predicate returns a wrong result set 2010-09-07 11:21:09 +02:00
subselect_debug.test
subselect_gis.test
subselect_innodb.test
subselect_notembedded.test
sum_distinct-big.test
sum_distinct.test
symlink.test
synchronization.test
sysdate_is_now-master.opt
sysdate_is_now.test
system_mysql_db.test
system_mysql_db_fix30020-master.opt
system_mysql_db_fix30020.test
system_mysql_db_fix40123-master.opt
system_mysql_db_fix40123.test
system_mysql_db_fix50030-master.opt
system_mysql_db_fix50030.test
system_mysql_db_fix50117-master.opt
system_mysql_db_fix50117.test
system_mysql_db_refs.test
tablelock.test
temp_table-master.opt
temp_table.test
timezone-master.opt
timezone.test
timezone2.test Bug #55424: convert_tz crashes when fed invalid data 2010-08-06 23:29:37 +04:00
timezone3-master.opt
timezone3.test
timezone4-master.opt
timezone4.test
timezone_grant.test
trigger-compat.test
trigger-trans.test
trigger.test
trigger_notembedded.test Fixed bug #55421 - Protocol::end_statement(): Assertion `0' on 2010-09-07 15:53:46 +07:00
truncate.test
type_binary.test
type_bit.test
type_bit_innodb.test
type_blob.test Bug #52160: crash and inconsistent results when grouping 2010-10-31 19:04:38 +03:00
type_date.test
type_datetime.test
type_decimal.test
type_enum.test
type_float.test
type_nchar.test
type_newdecimal-big.test
type_newdecimal.test
type_ranges.test
type_set.test
type_time.test Bug#53942 valgrind warnings with timestamp() function and incomplete datetime values 2010-05-31 13:25:11 +04:00
type_timestamp.test Bug #55779: select does not work properly in mysql server 2010-09-13 11:18:35 +04:00
type_uint.test
type_varchar.test
type_year.test
udf-master.opt
udf.test
udf_skip_grants-master.opt
udf_skip_grants.test
union-master.opt
union.test
unsafe_binlog_innodb-master.opt
unsafe_binlog_innodb.test
update.test Bug #54734 assert in Diagnostics_area::set_ok_status 2010-07-19 11:03:52 +02:00
upgrade.test Bug #53804: serious flaws in the alter database .. upgrade 2010-05-21 22:47:32 +04:00
user_limits.test
user_var-binlog.test
user_var.test Fix for Bug#56138 "valgrind errors about overlapping memory when double-assigning same variable", 2010-11-22 09:57:59 +01:00
varbinary.test
variables-big.test Bug#58197: main.variables-big fails on windows 2010-11-15 16:17:38 +01:00
variables-notembedded-master.opt
variables-notembedded.test
variables.test Assorted post-merge fixes, clean-up, integration, compat with 5.6. 2010-11-25 03:11:05 +00:00
variables_community.test
variables_debug.test Bug #56709: Memory leaks at running the 5.1 test suite 2010-09-22 23:33:18 +04:00
view.test Fixed following problems: 2010-12-14 12:33:03 +03:00
view_alias.test
view_grant.test
wait_timeout.test Test wait_timeout: do not fail by SQL syntax error, use die 2010-10-19 13:54:28 +02:00
warnings-master.opt
warnings.test
warnings_engine_disabled-master.opt
warnings_engine_disabled.test
windows.test
xa.test
xml.test Manual-merge from mysql-5.1-bugteam. 2010-11-22 12:21:10 +03:00