⚝
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
/
t
/
View File Name :
mysqldump_bug29998457.test
# Embedded server doesn't support external clients --source include/not_embedded.inc --echo # Bug#29998457 MYSQLDUMP GENERATES INVALID INSERT STATEMENTS WITH VARBINARY COLUMNS SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE = ''; let $mysqldumpfile = $MYSQLTEST_VARDIR/tmp/bug29998457.sql; CREATE DATABASE test_bug29998457; USE test_bug29998457; --echo #Pre-test cleanup --disable_warnings DROP TABLE IF EXISTS t1; --enable_warnings CREATE TABLE t1 ( pk INT, v1 VARCHAR(255), v2 VARCHAR(255), v3 VARCHAR(255), v4 VARCHAR(128), v5 VARCHAR(64), v6 VARCHAR(16), v7 VARCHAR(16), v8 VARCHAR(8), v9 VARBINARY(32), v10 VARBINARY(32)); SELECT '12345678901234567890123456789012345678901234567890' INTO @s; SELECT CONCAT(@s, @s, @s, @s, @s) INTO @s1; INSERT INTO t1 VALUES (1, @s1, @s1, @s1, @s1, @s1, @s1, @s1, @s1, '','NULL'); SELECT * FROM test_bug29998457.t1; --exec $MYSQL_DUMP --skip-comments test_bug29998457 > $mysqldumpfile --exec $MYSQL --show-warnings test_bug29998457 < $mysqldumpfile # Ensure that there were no invalid insert statements generated in the mysqldump # output and the dump was restored properly. SELECT * FROM test_bug29998457.t1; #Cleanup --remove_file $mysqldumpfile DROP DATABASE test_bug29998457; SET SQL_MODE = @OLD_SQL_MODE;