File: ndb_big_lcp_drop.test

package info (click to toggle)
mysql-8.0 8.0.43-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,273,924 kB
  • sloc: cpp: 4,684,605; ansic: 412,450; pascal: 108,398; java: 83,641; perl: 30,221; cs: 27,067; sql: 26,594; sh: 24,181; python: 21,816; yacc: 17,169; php: 11,522; xml: 7,388; javascript: 7,076; makefile: 2,194; lex: 1,075; awk: 670; asm: 520; objc: 183; ruby: 97; lisp: 86
file content (58 lines) | stat: -rw-r--r-- 1,809 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
-- source include/have_ndb.inc
-- source include/have_ndb_debug.inc

-- disable_warnings
drop table if exists t1,t2,t3;
-- enable_warnings

create table t1 (
  a int not null primary key,
  b int not null,
  c char(255)
) engine ndb;

create table t2 (
 a int not null primary key,
 b int not null) engine ndb;

create table t3 (
 a int not null primary key,
 b int not null) engine ndb;

insert into t1 values (1,1,'1'),(2,2,'2'),(3,3,'3'),(4,4,'4');
insert into t1 select a+4,b,c from t1;
insert into t1 select a+8,b,c from t1;
insert into t1 select a+16,b,c from t1;
insert into t1 select a+32,b,c from t1;
insert into t1 select a+64,b,c from t1;
insert into t1 select a+128,b,c from t1;
insert into t1 select a+256,b,c from t1;
insert into t1 select a+512,b,c from t1;
insert into t1 select a+1024,b,c from t1;
insert into t1 select a+2048,b,c from t1;
insert into t1 select a+4096,b,c from t1;
insert into t1 select a+8192,b,c from t1;
insert into t1 select a+16384,b,c from t1;
insert into t1 select a+32768,b,c from t1;
insert into t2 values (1,1),(2,2),(3,3),(4,4);
insert into t3 values (1,1),(2,2),(3,3),(4,4);

--exec $NDB_MGM -e "1 ERROR 7248" >> $NDB_TOOLS_OUTPUT
--exec $NDB_MGM -e "1 ERROR 6223" >> $NDB_TOOLS_OUTPUT
--exec $NDB_DROP_TABLE --database test t2 >> $NDB_TOOLS_OUTPUT
# Start cluster node again
# Wait for all nodes to enter "started"
--exec $NDB_WAITER --wait-nodes=1 >> $NDB_TOOLS_OUTPUT


--exec $NDB_MGM -e "3 ERROR 7248" >> $NDB_TOOLS_OUTPUT
--exec $NDB_MGM -e "3 ERROR 6223" >> $NDB_TOOLS_OUTPUT
--exec $NDB_DROP_TABLE --database test t3 >> $NDB_TOOLS_OUTPUT
# Start cluster node again
# Wait for all nodes to enter "started"
--exec $NDB_WAITER --wait-nodes=3 >> $NDB_TOOLS_OUTPUT

-- disable_warnings
drop table t1, t2, t3;
-- enable_warnings
--remove_file $NDB_TOOLS_OUTPUT