mirror of
https://github.com/MariaDB/server.git
synced 2025-01-21 06:22:28 +01:00
41 lines
2.8 KiB
Text
41 lines
2.8 KiB
Text
|
#
|
||
|
# Check replication protocol packet size handling
|
||
|
# Bug#19402 SQL close to the size of the max_allowed_packet fails on slave
|
||
|
#
|
||
|
|
||
|
# max-out size db name
|
||
|
source include/master-slave.inc;
|
||
|
|
||
|
let $db= DB_NAME_OF_MAX_LENGTH_AKA_NAME_LEN_64_BYTES_____________________;
|
||
|
|
||
|
connection master;
|
||
|
select @@net_buffer_length, @@max_allowed_packet;
|
||
|
eval drop database if exists $db;
|
||
|
eval create database $db;
|
||
|
|
||
|
# alas, can't use eval here
|
||
|
connect (master1,localhost,root,,DB_NAME_OF_MAX_LENGTH_AKA_NAME_LEN_64_BYTES_____________________);
|
||
|
|
||
|
connection master1;
|
||
|
create table `t1` (`f1` LONGTEXT) ENGINE=MyISAM;
|
||
|
|
||
|
INSERT INTO `t1`(`f1`) VALUES ('aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa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aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa1024');
|
||
|
|
||
|
save_master_pos;
|
||
|
|
||
|
connection slave;
|
||
|
sync_with_master;
|
||
|
select count(*) from `t1` /* must be 1 */;
|
||
|
|
||
|
connection master1;
|
||
|
eval drop database $db;
|
||
|
save_master_pos;
|
||
|
|
||
|
connection slave;
|
||
|
sync_with_master;
|
||
|
|
||
|
# End of tests
|