MDEV-22265 Connect string character limit too small for full 64 character InnoDB table-name limit when using ad-hoc Spider server definitions.
Fix length for getting default table name.
This commit is contained in:
parent
b1b2689f17
commit
cec8ea3ab5
@ -0,0 +1,7 @@
|
||||
--disable_warnings
|
||||
--disable_query_log
|
||||
--disable_result_log
|
||||
--source ../t/test_deinit.inc
|
||||
--enable_result_log
|
||||
--enable_query_log
|
||||
--enable_warnings
|
@ -0,0 +1,7 @@
|
||||
--disable_warnings
|
||||
--disable_query_log
|
||||
--disable_result_log
|
||||
--source ../t/test_init.inc
|
||||
--enable_result_log
|
||||
--enable_query_log
|
||||
--enable_warnings
|
23
storage/spider/mysql-test/spider/bugfix/r/mdev_22265.result
Normal file
23
storage/spider/mysql-test/spider/bugfix/r/mdev_22265.result
Normal file
@ -0,0 +1,23 @@
|
||||
for master_1
|
||||
for child2
|
||||
for child3
|
||||
|
||||
this test is for MDEV-22265
|
||||
|
||||
drop and create databases
|
||||
connection master_1;
|
||||
CREATE DATABASE auto_test_local;
|
||||
USE auto_test_local;
|
||||
|
||||
create table
|
||||
connection master_1;
|
||||
create table t2345678911234567892123456789312345678941234567895123(id int) ENGINE=SPIDER DEFAULT CHARSET=latin1 COMMENT='host "h114", user "spider", password "spider", port "3306", database "test32738"';
|
||||
|
||||
deinit
|
||||
connection master_1;
|
||||
DROP DATABASE IF EXISTS auto_test_local;
|
||||
for master_1
|
||||
for child2
|
||||
for child3
|
||||
|
||||
end of test
|
2
storage/spider/mysql-test/spider/bugfix/t/mdev_22265.cnf
Normal file
2
storage/spider/mysql-test/spider/bugfix/t/mdev_22265.cnf
Normal file
@ -0,0 +1,2 @@
|
||||
!include include/default_mysqld.cnf
|
||||
!include ../my_1_1.cnf
|
28
storage/spider/mysql-test/spider/bugfix/t/mdev_22265.test
Normal file
28
storage/spider/mysql-test/spider/bugfix/t/mdev_22265.test
Normal file
@ -0,0 +1,28 @@
|
||||
--source ../include/mdev_22265_init.inc
|
||||
--echo
|
||||
--echo this test is for MDEV-22265
|
||||
--echo
|
||||
--echo drop and create databases
|
||||
|
||||
--connection master_1
|
||||
--disable_warnings
|
||||
CREATE DATABASE auto_test_local;
|
||||
USE auto_test_local;
|
||||
--enable_warnings
|
||||
|
||||
--echo
|
||||
--echo create table
|
||||
--connection master_1
|
||||
create table t2345678911234567892123456789312345678941234567895123(id int) ENGINE=SPIDER DEFAULT CHARSET=latin1 COMMENT='host "h114", user "spider", password "spider", port "3306", database "test32738"';
|
||||
|
||||
--echo
|
||||
--echo deinit
|
||||
--disable_warnings
|
||||
|
||||
--connection master_1
|
||||
DROP DATABASE IF EXISTS auto_test_local;
|
||||
|
||||
--enable_warnings
|
||||
--source ../include/mdev_22265_deinit.inc
|
||||
--echo
|
||||
--echo end of test
|
Loading…
x
Reference in New Issue
Block a user