~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/default.test

  • Committer: Patrick Crews
  • Date: 2011-01-29 14:17:35 UTC
  • mto: (2126.1.1 build)
  • mto: This revision was merged to the branch mainline in revision 2127.
  • Revision ID: gleebix@gmail.com-20110129141735-3y2658vt5ur0a33o
Fixes to make test-dbqp

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
                 z varbinary(20) NOT NULL DEFAULT ' ',
38
38
                 a1 varbinary(30) NOT NULL DEFAULT ' ',
39
39
                 b1 blob NULL)
40
 
ENGINE=InnoDB DEFAULT COLLATE utf8_bin;
 
40
ENGINE=InnoDB DEFAULT COLLATE=utf8_bin;
41
41
 
42
42
INSERT into t1 (b) values ('1');
43
43
SHOW WARNINGS;
71
71
                 z varbinary(20) NOT NULL DEFAULT ' ',
72
72
                 a1 varbinary(30) NOT NULL DEFAULT ' ',
73
73
                 b1 blob NULL)
74
 
ENGINE=MyISAM DEFAULT COLLATE utf8_bin;
 
74
ENGINE=MyISAM DEFAULT COLLATE=utf8_bin;
75
75
 
76
76
SHOW CREATE TABLE t2;
77
77
INSERT into t2 (b) values ('1');
103
103
#      multiple-row statement, the preceding rows will have been inserted.
104
104
#
105
105
create table bug20691 (i int, d datetime NOT NULL, dn datetime NULL);
106
 
--error 1364
 
106
--error ER_NO_DEFAULT_FOR_FIELD
107
107
insert into bug20691 values (7, DEFAULT, DEFAULT), (7, '1975-07-10 07:10:03', '1978-01-13 14:08:51'), (7, DEFAULT, DEFAULT);
108
108
insert into bug20691 values (7, '1975-07-10 07:10:03', DEFAULT);
109
109
select * from bug20691 order by i asc;
118
118
  i decimal not null,
119
119
  x int);
120
120
insert into bug20691 values (3, '0007-01-01', 11, 17, '0019-01-01 00:00:00', 23, 1);
121
 
--error 1364
 
121
--error ER_NO_DEFAULT_FOR_FIELD
122
122
insert into bug20691 (x) values (2);
123
123
insert into bug20691 values (3, '0007-01-01', 11, 17, '0019-01-01 00:00:00', 23, 3);
124
 
--error 1364
 
124
--error ER_NO_DEFAULT_FOR_FIELD
125
125
insert into bug20691 values (DEFAULT, DEFAULT, DEFAULT, DEFAULT, DEFAULT, DEFAULT, 4);
126
126
select * from bug20691 order by x asc;
127
127
drop table bug20691;