~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/strict.result

A number of dead code removal patches.

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
Warnings:
36
36
Warning 1265    Data truncated for column 'col1' at row 1
37
37
INSERT IGNORE INTO t1 values (1/0);
38
 
ERROR 22012: Division by 0
 
38
Warnings:
 
39
Error   1365    Division by 0
39
40
INSERT IGNORE INTO t1 values (-2147483649);
40
41
Warnings:
41
42
Warning 1264    Out of range value for column 'col1' at row 1
64
65
-2147483648
65
66
2147483647
66
67
2
 
68
NULL
67
69
-2147483648
68
70
2147483647
69
71
-2147483648
81
83
INSERT INTO t1 VALUES (9223372036854775700.0);
82
84
INSERT INTO t1 (col1) VALUES(-9223372036854775809);
83
85
ERROR 22003: Out of range value for column 'col1' at row 1
84
 
INSERT INTO t1 (col1) VALUES(9223372036854775808);
85
 
ERROR 22003: Out of range value for column 'col1' at row 1
86
86
INSERT INTO t1 (col1) VALUES('-9223372036854775809');
87
87
ERROR 22003: Out of range value for column 'col1' at row 1
88
88
INSERT INTO t1 (col1) VALUES('9223372036854775808');
105
105
Warnings:
106
106
Warning 1265    Data truncated for column 'col1' at row 1
107
107
INSERT IGNORE INTO t1 values (1/0);
108
 
ERROR 22012: Division by 0
 
108
Warnings:
 
109
Error   1365    Division by 0
109
110
INSERT IGNORE INTO t1 VALUES (-9223372036854775809);
110
111
Warnings:
111
112
Warning 1264    Out of range value for column 'col1' at row 1
112
113
INSERT IGNORE INTO t1 VALUES (9223372036854775808);
113
 
Warnings:
114
 
Warning 1264    Out of range value for column 'col1' at row 1
115
114
INSERT IGNORE INTO t1 VALUES ('-9223372036854775809');
116
115
Warnings:
117
116
Warning 1264    Out of range value for column 'col1' at row 1
134
133
-9223372036854774000
135
134
9223372036854775700
136
135
2
 
136
NULL
137
137
-9223372036854775808
138
138
-9223372036854775808
139
139
-9223372036854775808
197
197
Warnings:
198
198
Warning 1265    Data truncated for column 'col1' at row 1
199
199
INSERT IGNORE INTO t1 values (1/0);
200
 
ERROR 22012: Division by 0
 
200
Warnings:
 
201
Error   1365    Division by 0
201
202
INSERT IGNORE INTO t1 VALUES (1000);
202
203
Warnings:
203
204
Warning 1264    Out of range value for column 'col1' at row 1
235
236
99.99
236
237
99.99
237
238
NULL
 
239
NULL
238
240
DROP TABLE t1;
239
241
CREATE TABLE t1 (col1 CHAR(5), col2 VARCHAR(6));
240
242
INSERT INTO t1 VALUES ('hello', 'hello');
241
243
INSERT INTO t1 VALUES ('he', 'he');
242
244
INSERT INTO t1 VALUES ('hello   ', 'hello ');
243
 
ERROR 22001: Data too long for column 'col1' at row 1
 
245
Warnings:
 
246
Note    1265    Data truncated for column 'col1' at row 1
244
247
INSERT INTO t1 (col1) VALUES ('hellobob');
245
248
ERROR 22001: Data too long for column 'col1' at row 1
246
249
INSERT INTO t1 (col2) VALUES ('hellobob');
247
250
ERROR 22001: Data too long for column 'col2' at row 1
248
251
INSERT INTO t1 (col2) VALUES ('hello  ');
249
 
ERROR 22001: Data too long for column 'col2' at row 1
 
252
Warnings:
 
253
Note    1265    Data truncated for column 'col2' at row 1
250
254
UPDATE t1 SET col1 ='hellobob' WHERE col1 ='he';
251
255
ERROR 22001: Data too long for column 'col1' at row 2
252
256
UPDATE t1 SET col2 ='hellobob' WHERE col2 ='he';
253
257
ERROR 22001: Data too long for column 'col2' at row 2
254
258
INSERT IGNORE INTO t1 VALUES ('hellobob', 'hellobob');
255
259
Warnings:
256
 
Error   1406    Data too long for column 'col1' at row 1
257
 
Error   1406    Data too long for column 'col2' at row 1
 
260
Warning 1265    Data truncated for column 'col1' at row 1
 
261
Warning 1265    Data truncated for column 'col2' at row 1
258
262
UPDATE IGNORE t1 SET col2 ='hellotrudy' WHERE col2 ='he';
259
263
Warnings:
260
 
Error   1406    Data too long for column 'col2' at row 2
 
264
Warning 1265    Data truncated for column 'col2' at row 2
261
265
SELECT * FROM t1;
262
266
col1    col2
 
267
NULL    hello 
263
268
he      hellot
264
269
hello   hello
 
270
hello   hello 
265
271
hello   hellob
266
272
DROP TABLE t1;
267
273
CREATE TABLE t1 (col1 enum('red','blue','green'));
316
322
SHOW CREATE TABLE t1;
317
323
Table   Create Table
318
324
t1      CREATE TABLE `t1` (
319
 
  `col1` INT NOT NULL DEFAULT '99',
320
 
  `col2` VARCHAR(6) COLLATE utf8_general_ci NOT NULL
321
 
) ENGINE=DEFAULT COLLATE = utf8_general_ci
 
325
  `col1` int NOT NULL DEFAULT '99',
 
326
  `col2` varchar(6) NOT NULL
 
327
) ENGINE=DEFAULT
322
328
INSERT INTO t1 VALUES (1, 'hello');
323
329
INSERT INTO t1 (col2) VALUES ('hello2');
324
330
INSERT INTO t1 (col2) VALUES (NULL);
423
429
show create table t1;
424
430
Table   Create Table
425
431
t1      CREATE TABLE `t1` (
426
 
  `a` BIGINT NOT NULL,
427
 
  `b` DATE NOT NULL
428
 
) ENGINE=DEFAULT COLLATE = utf8_general_ci
 
432
  `a` bigint NOT NULL,
 
433
  `b` date NOT NULL
 
434
) ENGINE=DEFAULT
429
435
drop table t1;
430
436
create table t1(a int, b timestamp);
431
437
alter table t1 add primary key(a);
432
438
show create table t1;
433
439
Table   Create Table
434
440
t1      CREATE TABLE `t1` (
435
 
  `a` INT NOT NULL,
436
 
  `b` TIMESTAMP NULL DEFAULT NULL,
 
441
  `a` int NOT NULL,
 
442
  `b` timestamp NULL DEFAULT NULL,
437
443
  PRIMARY KEY (`a`)
438
 
) ENGINE=DEFAULT COLLATE = utf8_general_ci
 
444
) ENGINE=DEFAULT
439
445
drop table t1;
440
446
create table t1(a int, b timestamp default 20050102030405);
441
447
alter table t1 add primary key(a);
442
448
show create table t1;
443
449
Table   Create Table
444
450
t1      CREATE TABLE `t1` (
445
 
  `a` INT NOT NULL,
446
 
  `b` TIMESTAMP NULL DEFAULT '2005-01-02 03:04:05',
 
451
  `a` int NOT NULL,
 
452
  `b` timestamp NULL DEFAULT '2005-01-02 03:04:05',
447
453
  PRIMARY KEY (`a`)
448
 
) ENGINE=DEFAULT COLLATE = utf8_general_ci
 
454
) ENGINE=DEFAULT
449
455
drop table t1;
450
456
create table t1 (date date not null);
451
457
create table t2 select date from t1;
452
458
show create table t2;
453
459
Table   Create Table
454
460
t2      CREATE TABLE `t2` (
455
 
  `date` DATE NOT NULL
456
 
) ENGINE=DEFAULT COLLATE = utf8_general_ci
 
461
  `date` date NOT NULL
 
462
) ENGINE=DEFAULT
457
463
drop table t2,t1;
458
464
create table t1 (i int)
459
 
comment='123456789*123456789*123456789*123456789*123456789*123456789*';
 
465
comment '123456789*123456789*123456789*123456789*123456789*123456789*';
460
466
show create table t1;
461
467
Table   Create Table
462
468
t1      CREATE TABLE `t1` (
463
 
  `i` INT DEFAULT NULL
464
 
) ENGINE=DEFAULT COMMENT='123456789*123456789*123456789*123456789*123456789*123456789*' COLLATE = utf8_general_ci
 
469
  `i` int DEFAULT NULL
 
470
) ENGINE=DEFAULT COMMENT='123456789*123456789*123456789*123456789*123456789*123456789*'
465
471
drop table t1;
466
472
create table t1(col1 int, col2 int, 
467
473
col3 int, col4 int,