~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/strict.result

  • Committer: Brian Aker
  • Date: 2010-07-30 20:31:19 UTC
  • mto: This revision was merged to the branch mainline in revision 1679.
  • Revision ID: brian@gaz-20100730203119-89g2ye4zwnvcacxg
First pass in encapsulating row

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');
316
318
SHOW CREATE TABLE t1;
317
319
Table   Create Table
318
320
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
 
321
  `col1` int NOT NULL DEFAULT '99',
 
322
  `col2` varchar(6) NOT NULL
 
323
) ENGINE=DEFAULT
322
324
INSERT INTO t1 VALUES (1, 'hello');
323
325
INSERT INTO t1 (col2) VALUES ('hello2');
324
326
INSERT INTO t1 (col2) VALUES (NULL);
423
425
show create table t1;
424
426
Table   Create Table
425
427
t1      CREATE TABLE `t1` (
426
 
  `a` BIGINT NOT NULL,
427
 
  `b` DATE NOT NULL
428
 
) ENGINE=DEFAULT COLLATE = utf8_general_ci
 
428
  `a` bigint NOT NULL,
 
429
  `b` date NOT NULL
 
430
) ENGINE=DEFAULT
429
431
drop table t1;
430
432
create table t1(a int, b timestamp);
431
433
alter table t1 add primary key(a);
432
434
show create table t1;
433
435
Table   Create Table
434
436
t1      CREATE TABLE `t1` (
435
 
  `a` INT NOT NULL,
436
 
  `b` TIMESTAMP NULL DEFAULT NULL,
 
437
  `a` int NOT NULL,
 
438
  `b` timestamp NULL DEFAULT NULL,
437
439
  PRIMARY KEY (`a`)
438
 
) ENGINE=DEFAULT COLLATE = utf8_general_ci
 
440
) ENGINE=DEFAULT
439
441
drop table t1;
440
442
create table t1(a int, b timestamp default 20050102030405);
441
443
alter table t1 add primary key(a);
442
444
show create table t1;
443
445
Table   Create Table
444
446
t1      CREATE TABLE `t1` (
445
 
  `a` INT NOT NULL,
446
 
  `b` TIMESTAMP NULL DEFAULT '2005-01-02 03:04:05',
 
447
  `a` int NOT NULL,
 
448
  `b` timestamp NULL DEFAULT '2005-01-02 03:04:05',
447
449
  PRIMARY KEY (`a`)
448
 
) ENGINE=DEFAULT COLLATE = utf8_general_ci
 
450
) ENGINE=DEFAULT
449
451
drop table t1;
450
452
create table t1 (date date not null);
451
453
create table t2 select date from t1;
452
454
show create table t2;
453
455
Table   Create Table
454
456
t2      CREATE TABLE `t2` (
455
 
  `date` DATE NOT NULL
456
 
) ENGINE=DEFAULT COLLATE = utf8_general_ci
 
457
  `date` date NOT NULL
 
458
) ENGINE=DEFAULT
457
459
drop table t2,t1;
458
460
create table t1 (i int)
459
461
comment='123456789*123456789*123456789*123456789*123456789*123456789*';
460
462
show create table t1;
461
463
Table   Create Table
462
464
t1      CREATE TABLE `t1` (
463
 
  `i` INT DEFAULT NULL
464
 
) ENGINE=DEFAULT COMMENT='123456789*123456789*123456789*123456789*123456789*123456789*' COLLATE = utf8_general_ci
 
465
  `i` int DEFAULT NULL
 
466
) ENGINE=DEFAULT COMMENT='123456789*123456789*123456789*123456789*123456789*123456789*'
465
467
drop table t1;
466
468
create table t1(col1 int, col2 int, 
467
469
col3 int, col4 int,