Skip to content

Commit cec8ea3

Browse files
committed
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.
1 parent b1b2689 commit cec8ea3

File tree

5 files changed

+67
-0
lines changed

5 files changed

+67
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
--disable_warnings
2+
--disable_query_log
3+
--disable_result_log
4+
--source ../t/test_deinit.inc
5+
--enable_result_log
6+
--enable_query_log
7+
--enable_warnings
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
--disable_warnings
2+
--disable_query_log
3+
--disable_result_log
4+
--source ../t/test_init.inc
5+
--enable_result_log
6+
--enable_query_log
7+
--enable_warnings
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
for master_1
2+
for child2
3+
for child3
4+
5+
this test is for MDEV-22265
6+
7+
drop and create databases
8+
connection master_1;
9+
CREATE DATABASE auto_test_local;
10+
USE auto_test_local;
11+
12+
create table
13+
connection master_1;
14+
create table t2345678911234567892123456789312345678941234567895123(id int) ENGINE=SPIDER DEFAULT CHARSET=latin1 COMMENT='host "h114", user "spider", password "spider", port "3306", database "test32738"';
15+
16+
deinit
17+
connection master_1;
18+
DROP DATABASE IF EXISTS auto_test_local;
19+
for master_1
20+
for child2
21+
for child3
22+
23+
end of test
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
!include include/default_mysqld.cnf
2+
!include ../my_1_1.cnf
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
--source ../include/mdev_22265_init.inc
2+
--echo
3+
--echo this test is for MDEV-22265
4+
--echo
5+
--echo drop and create databases
6+
7+
--connection master_1
8+
--disable_warnings
9+
CREATE DATABASE auto_test_local;
10+
USE auto_test_local;
11+
--enable_warnings
12+
13+
--echo
14+
--echo create table
15+
--connection master_1
16+
create table t2345678911234567892123456789312345678941234567895123(id int) ENGINE=SPIDER DEFAULT CHARSET=latin1 COMMENT='host "h114", user "spider", password "spider", port "3306", database "test32738"';
17+
18+
--echo
19+
--echo deinit
20+
--disable_warnings
21+
22+
--connection master_1
23+
DROP DATABASE IF EXISTS auto_test_local;
24+
25+
--enable_warnings
26+
--source ../include/mdev_22265_deinit.inc
27+
--echo
28+
--echo end of test

0 commit comments

Comments
 (0)