37
37
z varbinary(20) NOT NULL DEFAULT ' ',
38
38
a1 varbinary(30) NOT NULL DEFAULT ' ',
40
ENGINE=InnoDB DEFAULT COLLATE=utf8_bin;
40
ENGINE=InnoDB DEFAULT COLLATE utf8_bin;
42
42
INSERT into t1 (b) values ('1');
46
CREATE TEMPORARY TABLE t2 (a varbinary(30) NOT NULL DEFAULT ' ',
46
CREATE TABLE t2 (a varbinary(30) NOT NULL DEFAULT ' ',
47
47
b varbinary(1) NOT NULL DEFAULT ' ',
48
48
c varbinary(4) NOT NULL DEFAULT '0000',
71
71
z varbinary(20) NOT NULL DEFAULT ' ',
72
72
a1 varbinary(30) NOT NULL DEFAULT ' ',
74
ENGINE=MyISAM DEFAULT COLLATE=utf8_bin;
74
ENGINE=MyISAM DEFAULT COLLATE utf8_bin;
76
76
SHOW CREATE TABLE t2;
77
77
INSERT into t2 (b) values ('1');
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.
105
create table bug20691 (i int, d datetime NOT NULL, dn datetime NULL);
106
--error ER_NO_DEFAULT_FOR_FIELD
105
create table bug20691 (i int, d datetime NOT NULL, dn datetime not null default '0000-00-00 00:00:00');
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;
112
112
create table bug20691 (
113
113
b enum('small', 'medium', 'large', 'enormous', 'ellisonego') not null,
117
118
h datetime not null,
118
119
i decimal not null,
120
insert into bug20691 values (3, '0007-01-01', 11, 17, '0019-01-01 00:00:00', 23, 1);
121
--error ER_NO_DEFAULT_FOR_FIELD
121
insert into bug20691 values (3, 5, '0007-01-01', 11, 17, '0019-01-01 00:00:00', 23, 1);
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
--error ER_NO_DEFAULT_FOR_FIELD
125
insert into bug20691 values (DEFAULT, DEFAULT, DEFAULT, DEFAULT, DEFAULT, DEFAULT, 4);
124
insert into bug20691 values (3, 5, '0007-01-01', 11, 17, '0019-01-01 00:00:00', 23, 3);
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;