| Server IP : 88.99.149.37 / Your IP : 216.73.216.141 Web Server : nginx/1.31.2 System : Linux server-88-99-149-37 6.12.0-124.56.5.el10_1.x86_64 #1 SMP PREEMPT_DYNAMIC Fri May 15 06:12:08 EDT 2026 x86_64 User : muralimurth ( 1015) PHP Version : 8.4.23 Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/local/mysql/mysql-test/suite/rpl/t/ |
Upload File : |
# BUG#45574: # SP: CREATE DATABASE|TABLE IF NOT EXISTS not binlogged if routine exists. # # There is an inconsistency with DROP DATABASE|TABLE|EVENT IF EXISTS and # CREATE DATABASE|TABLE|EVENT IF NOT EXISTS. DROP IF EXISTS statements are # binlogged even if either the DB, TABLE or EVENT does not exist. In # contrast, Only the CREATE EVENT IF NOT EXISTS is binlogged when the EVENT # exists. # # This problem caused some of the tests to fail randomly on PB or PB2. # # Test is implemented as follows: # # i) test each "CREATE TEMPORARY TABLE IF EXISTS" (DDL), found in MySQL # 5.1 manual, on existent objects; # ii) show binlog events; # # Note: # rpl_create_if_not_exists.test tests other cases. # # References: # http://dev.mysql.com/doc/refman/5.1/en/sql-syntax-data-definition.html # #CREATE TEMPORARY TABLE statements are not binlogged in row mode, #So it must be test by itself. source include/have_binlog_format_mixed_or_statement.inc; source include/master-slave.inc; disable_warnings; DROP DATABASE IF EXISTS mysqltest; CREATE TEMPORARY TABLE IF NOT EXISTS tmp(c1 int); CREATE TEMPORARY TABLE IF NOT EXISTS tmp(c1 int); CREATE TEMPORARY TABLE IF NOT EXISTS tmp1 LIKE tmp; CREATE TEMPORARY TABLE IF NOT EXISTS tmp1 LIKE tmp; CREATE TEMPORARY TABLE IF NOT EXISTS tmp2 SELECT * FROM tmp; CREATE TEMPORARY TABLE IF NOT EXISTS tmp2 SELECT * FROM tmp; source include/show_binlog_events.inc; DROP TEMPORARY TABLE tmp; DROP TEMPORARY TABLE tmp1; DROP TEMPORARY TABLE tmp2; --source include/rpl_end.inc