~ubuntu-branches/ubuntu/maverick/mysql-5.1/maverick-proposed

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
set old_alter_table=0;
create table bug53592(a int) engine=innodb row_format=compact;
alter table bug53592 add column b text charset utf8;
alter table bug53592 add column c blob not null;
create index bug53592_b on bug53592(b(81));
create unique index bug53592_c on bug53592(c(1));
replace into bug53592 values (),();
Warnings:
Warning	1364	Field 'c' doesn't have a default value
check table bug53592;
Table	Op	Msg_type	Msg_text
test.bug53592	check	status	OK
drop table bug53592;
set old_alter_table=1;
create table bug53592(a int) engine=innodb row_format=compact;
alter table bug53592 add column b text charset utf8;
alter table bug53592 add column c blob not null;
create index bug53592_b on bug53592(b(81));
create unique index bug53592_c on bug53592(c(1));
replace into bug53592 values (),();
Warnings:
Warning	1364	Field 'c' doesn't have a default value
check table bug53592;
Table	Op	Msg_type	Msg_text
test.bug53592	check	status	OK
drop table bug53592;