⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.124
Server IP:
50.28.103.30
Server:
Linux host.jcukjv-lwsites.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
Server Software:
nginx/1.28.0
PHP Version:
8.3.12
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
www
/
server
/
mysql
/
mysql-test
/
suite
/
rpl
/
t
/
View File Name :
rpl_create_tmp_table_if_not_exists.test
# 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 # --source include/not_group_replication_plugin.inc #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/not_gtid_enabled.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 IF EXISTS tmp; DROP TEMPORARY TABLE IF EXISTS tmp1; DROP TEMPORARY TABLE IF EXISTS tmp2; --source include/rpl_end.inc