~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/default.test

  • Committer: Monty Taylor
  • Date: 2009-01-09 07:02:24 UTC
  • mto: (779.1.2 devel)
  • mto: This revision was merged to the branch mainline in revision 784.
  • Revision ID: mordred@inaugust.com-20090109070224-prwl5p52mfql3zfw
Split out readline.

Show diffs side-by-side

added added

removed removed

Lines of Context:
102
102
#      occurs, but if this happens for the second or subsequent row of a
103
103
#      multiple-row statement, the preceding rows will have been inserted.
104
104
#
105
 
create table bug20691 (i int, d datetime NOT NULL, dn datetime NULL);
 
105
create table bug20691 (i int, d datetime NOT NULL, dn datetime not null default '0000-00-00 00:00:00');
106
106
--error 1364
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);
111
111
 
112
112
create table bug20691 (
113
113
  b enum('small', 'medium', 'large', 'enormous', 'ellisonego') not null,
 
114
  c time not null,
114
115
  d date not null,
115
116
  e int not null,
116
117
  g blob not null,
117
118
  h datetime not null,
118
119
  i decimal not null,
119
120
  x int);
120
 
insert into bug20691 values (3, '0007-01-01', 11, 17, '0019-01-01 00:00:00', 23, 1);
 
121
insert into bug20691 values (3, 5, '0007-01-01', 11, 17, '0019-01-01 00:00:00', 23, 1);
121
122
--error 1364
122
123
insert into bug20691 (x) values (2);
123
 
insert into bug20691 values (3, '0007-01-01', 11, 17, '0019-01-01 00:00:00', 23, 3);
 
124
insert into bug20691 values (3, 5, '0007-01-01', 11, 17, '0019-01-01 00:00:00', 23, 3);
124
125
--error 1364
125
 
insert into bug20691 values (DEFAULT, DEFAULT, DEFAULT, DEFAULT, DEFAULT, DEFAULT, 4);
 
126
insert into bug20691 values (DEFAULT, DEFAULT, DEFAULT, DEFAULT, DEFAULT, DEFAULT, DEFAULT, 4);
126
127
select * from bug20691 order by x asc;
127
128
drop table bug20691;
128
129