mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Another bugfix for #615
Looks a bit nicer than previous one mysql-test/r/insert.result: Test results added mysql-test/t/insert.test: testcase for the bug added sql/field.h: Field::set_default fixed sql/field_conv.cc: Now we can just replace field->reset() with field->set_default() here
This commit is contained in:
@ -58,6 +58,16 @@ skr 2
|
||||
test 1
|
||||
test 2
|
||||
drop table t1;
|
||||
create table t1 (id int NOT NULL DEFAULT 8);
|
||||
insert into t1 values(NULL);
|
||||
Column 'id' cannot be null
|
||||
insert into t1 values (1), (NULL), (2);
|
||||
select * from t1;
|
||||
id
|
||||
1
|
||||
8
|
||||
2
|
||||
drop table t1;
|
||||
drop database if exists foo;
|
||||
create database foo;
|
||||
use foo;
|
||||
|
Reference in New Issue
Block a user