~jlukas79/+junk/mysql-server

« back to all changes in this revision

Viewing changes to mysql-test/suite/funcs_1/r/memory_trig_1011ext.result

manual merge 6.0-main --> 6.0-bka-review

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
SET @@session.sql_mode = 'NO_ENGINE_SUBSTITUTION';
1
2
USE test;
2
3
drop table if exists tb3;
3
4
create table tb3 (
4
 
f118 char not null DEFAULT 'a', 
5
 
f119 char binary not null DEFAULT b'101', 
6
 
f120 char ascii not null DEFAULT b'101', 
7
 
f121 char(50), 
8
 
f122 char(50), 
9
 
f129 binary not null DEFAULT b'101', 
10
 
f130 tinyint not null DEFAULT 99, 
11
 
f131 tinyint unsigned not null DEFAULT 99, 
12
 
f132 tinyint zerofill not null DEFAULT 99, 
13
 
f133 tinyint unsigned zerofill not null DEFAULT 99, 
14
 
f134 smallint not null DEFAULT 999, 
15
 
f135 smallint unsigned not null DEFAULT 999, 
16
 
f136 smallint zerofill not null DEFAULT 999,  
17
 
f137 smallint unsigned zerofill not null DEFAULT 999, 
18
 
f138 mediumint not null DEFAULT 9999, 
19
 
f139 mediumint unsigned not null DEFAULT 9999, 
20
 
f140 mediumint zerofill not null DEFAULT 9999, 
21
 
f141 mediumint unsigned zerofill not null DEFAULT 9999, 
22
 
f142 int not null DEFAULT 99999, 
23
 
f143 int unsigned not null DEFAULT 99999, 
24
 
f144 int zerofill not null DEFAULT 99999, 
25
 
f145 int unsigned zerofill not null DEFAULT 99999, 
26
 
f146 bigint not null DEFAULT 999999, 
27
 
f147 bigint unsigned not null DEFAULT 999999, 
28
 
f148 bigint zerofill not null DEFAULT 999999, 
29
 
f149 bigint unsigned zerofill not null DEFAULT 999999, 
30
 
f150 decimal not null DEFAULT 999.999, 
31
 
f151 decimal unsigned not null DEFAULT 999.17, 
32
 
f152 decimal zerofill not null DEFAULT 999.999, 
33
 
f153 decimal unsigned zerofill, 
34
 
f154 decimal (0), 
35
 
f155 decimal (64), 
36
 
f156 decimal (0) unsigned, 
37
 
f157 decimal (64) unsigned, 
38
 
f158 decimal (0) zerofill, 
39
 
f159 decimal (64) zerofill, 
40
 
f160 decimal (0) unsigned zerofill, 
41
 
f161 decimal (64) unsigned zerofill, 
42
 
f162 decimal (0,0), 
43
 
f163 decimal (63,30), 
44
 
f164 decimal (0,0) unsigned, 
45
 
f165 decimal (63,30) unsigned, 
46
 
f166 decimal (0,0) zerofill, 
47
 
f167 decimal (63,30) zerofill, 
48
 
f168 decimal (0,0) unsigned zerofill, 
49
 
f169 decimal (63,30) unsigned zerofill, 
50
 
f170 numeric, 
51
 
f171 numeric unsigned, 
52
 
f172 numeric zerofill, 
53
 
f173 numeric unsigned zerofill, 
54
 
f174 numeric (0), 
55
 
f175 numeric (64) 
56
 
) engine = memory;
 
5
f118 char not null DEFAULT 'a',
 
6
f119 char binary not null DEFAULT b'101',
 
7
f120 char ascii not null DEFAULT b'101',
 
8
f121 char(50),
 
9
f122 char(50),
 
10
f129 binary not null DEFAULT b'101',
 
11
f130 tinyint not null DEFAULT 99,
 
12
f131 tinyint unsigned not null DEFAULT 99,
 
13
f132 tinyint zerofill not null DEFAULT 99,
 
14
f133 tinyint unsigned zerofill not null DEFAULT 99,
 
15
f134 smallint not null DEFAULT 999,
 
16
f135 smallint unsigned not null DEFAULT 999,
 
17
f136 smallint zerofill not null DEFAULT 999,
 
18
f137 smallint unsigned zerofill not null DEFAULT 999,
 
19
f138 mediumint not null DEFAULT 9999,
 
20
f139 mediumint unsigned not null DEFAULT 9999,
 
21
f140 mediumint zerofill not null DEFAULT 9999,
 
22
f141 mediumint unsigned zerofill not null DEFAULT 9999,
 
23
f142 int not null DEFAULT 99999,
 
24
f143 int unsigned not null DEFAULT 99999,
 
25
f144 int zerofill not null DEFAULT 99999,
 
26
f145 int unsigned zerofill not null DEFAULT 99999,
 
27
f146 bigint not null DEFAULT 999999,
 
28
f147 bigint unsigned not null DEFAULT 999999,
 
29
f148 bigint zerofill not null DEFAULT 999999,
 
30
f149 bigint unsigned zerofill not null DEFAULT 999999,
 
31
f150 decimal not null DEFAULT 999.999,
 
32
f151 decimal unsigned not null DEFAULT 999.17,
 
33
f152 decimal zerofill not null DEFAULT 999.999,
 
34
f153 decimal unsigned zerofill,
 
35
f154 decimal (0),
 
36
f155 decimal (64),
 
37
f156 decimal (0) unsigned,
 
38
f157 decimal (64) unsigned,
 
39
f158 decimal (0) zerofill,
 
40
f159 decimal (64) zerofill,
 
41
f160 decimal (0) unsigned zerofill,
 
42
f161 decimal (64) unsigned zerofill,
 
43
f162 decimal (0,0),
 
44
f163 decimal (63,30),
 
45
f164 decimal (0,0) unsigned,
 
46
f165 decimal (63,30) unsigned,
 
47
f166 decimal (0,0) zerofill,
 
48
f167 decimal (63,30) zerofill,
 
49
f168 decimal (0,0) unsigned zerofill,
 
50
f169 decimal (63,30) unsigned zerofill,
 
51
f170 numeric,
 
52
f171 numeric unsigned,
 
53
f172 numeric zerofill,
 
54
f173 numeric unsigned zerofill,
 
55
f174 numeric (0),
 
56
f175 numeric (64)
 
57
) engine = <engine_to_be_used>;
57
58
Warnings:
58
59
Note    1265    Data truncated for column 'f150' at row 1
59
60
Note    1265    Data truncated for column 'f151' at row 1
60
61
Note    1265    Data truncated for column 'f152' at row 1
61
 
load data infile 'MYSQL_TEST_DIR/suite/funcs_1/data/memory_tb3.txt' into table tb3 ;
 
62
load data infile '<MYSQLTEST_VARDIR>/std_data_ln/funcs_1/memory_tb3.txt'
 
63
into table tb3;
62
64
 
63
65
Testcase 3.5.10.1/2/3:
64
66
----------------------
128
130
 
129
131
Testcase 3.5.10.4:
130
132
------------------
131
 
create table tb_load (f1 int, f2 char(25),f3 int) engine=memory;
 
133
create table tb_load (f1 int, f2 char(25),f3 int) engine = <engine_to_be_used>;
132
134
Create trigger trg4 before insert on tb_load
133
135
for each row set new.f3=-(new.f1 div 5), @counter= @counter+1;
134
136
set @counter= 0;
135
137
select @counter as 'Rows Loaded Before';
136
138
Rows Loaded Before
137
139
0
138
 
load data infile 'MYSQL_TEST_DIR/suite/funcs_1/data/t9.txt' into table tb_load;
 
140
load data infile '<MYSQLTEST_VARDIR>/std_data_ln/funcs_1/t9.txt' into table tb_load;
139
141
select @counter as 'Rows Loaded After';
140
142
Rows Loaded After
141
143
10
162
164
 
163
165
Testcase 3.5.10.extra:
164
166
----------------------
165
 
create table t1_sp (var136 tinyint, var151 decimal) engine=memory;
 
167
create table t1_sp (var136 tinyint, var151 decimal) engine = <engine_to_be_used>;
166
168
create trigger trg before insert on t1_sp
167
169
for each row set @counter=@counter+1;
168
170
create procedure trig_sp()
211
213
drop table if exists t2_3;
212
214
drop table if exists t2_4;
213
215
drop table if exists t3;
214
 
create table t1 (f1 integer) engine=memory;
215
 
create table t2_1 (f1 integer) engine=memory;
216
 
create table t2_2 (f1 integer) engine=memory;
217
 
create table t2_3 (f1 integer) engine=memory;
218
 
create table t2_4 (f1 integer) engine=memory;
219
 
create table t3 (f1 integer) engine=memory;
 
216
create table t1 (f1 integer) engine = <engine_to_be_used>;
 
217
create table t2_1 (f1 integer) engine = <engine_to_be_used>;
 
218
create table t2_2 (f1 integer) engine = <engine_to_be_used>;
 
219
create table t2_3 (f1 integer) engine = <engine_to_be_used>;
 
220
create table t2_4 (f1 integer) engine = <engine_to_be_used>;
 
221
create table t3 (f1 integer) engine = <engine_to_be_used>;
220
222
insert into t1 values (1);
221
223
create trigger tr1 after insert on t1 for each row
222
224
BEGIN
254
256
drop table if exists t2;
255
257
drop table if exists t3;
256
258
drop table if exists t4;
257
 
create table t1 (f1 integer) engine = memory;
258
 
create table t2 (f2 integer) engine = memory;
259
 
create table t3 (f3 integer) engine = memory;
260
 
create table t4 (f4 integer) engine = memory;
 
259
create table t1 (f1 integer) engine = <engine_to_be_used>;
 
260
create table t2 (f2 integer) engine = <engine_to_be_used>;
 
261
create table t3 (f3 integer) engine = <engine_to_be_used>;
 
262
create table t4 (f4 integer) engine = <engine_to_be_used>;
261
263
insert into t1 values (0);
262
264
create trigger tr1 after insert on t1
263
265
for each row insert into t2 (f2) values (new.f1+1);
297
299
create table t1_sp (
298
300
count integer,
299
301
var136 tinyint,
300
 
var151 decimal) engine=memory;
 
302
var151 decimal) engine = <engine_to_be_used>;
301
303
create procedure trig_sp()
302
304
begin
303
305
declare done int default 0;
351
353
drop trigger trg;
352
354
drop table t1_sp;
353
355
 
354
 
Testcase y.y.y.5: Roleback of nested trigger references
 
356
Testcase y.y.y.5: Rollback of nested trigger references
355
357
-------------------------------------------------------
356
358
set @@sql_mode='traditional';
357
359
use test;
359
361
drop table if exists t2;
360
362
drop table if exists t3;
361
363
drop table if exists t4;
362
 
create table t1 (f1 integer) engine = memory;
363
 
create table t2 (f2 integer) engine = memory;
364
 
create table t3 (f3 integer) engine = memory;
365
 
create table t4 (f4 tinyint) engine = memory;
 
364
create table t1 (f1 integer) engine = <engine_to_be_used>;
 
365
create table t2 (f2 integer) engine = <engine_to_be_used>;
 
366
create table t3 (f3 integer) engine = <engine_to_be_used>;
 
367
create table t4 (f4 tinyint) engine = <engine_to_be_used>;
366
368
show create table t1;
367
369
Table   Create Table
368
370
t1      CREATE TABLE `t1` (