mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
@ -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;
|
||||
|
@ -50,6 +50,17 @@ insert into t1 values ('rts',NULL),('rts',NULL),('test',NULL);
|
||||
select * from t1;
|
||||
drop table t1;
|
||||
|
||||
#
|
||||
#Test of behaviour with INSERT VALUES (NULL)
|
||||
#
|
||||
|
||||
create table t1 (id int NOT NULL DEFAULT 8);
|
||||
-- error 1048
|
||||
insert into t1 values(NULL);
|
||||
insert into t1 values (1), (NULL), (2);
|
||||
select * from t1;
|
||||
drop table t1;
|
||||
|
||||
#
|
||||
# Test of mysqld crash with fully qualified column names
|
||||
#
|
||||
@ -60,3 +71,4 @@ use foo;
|
||||
create table t1 (c int);
|
||||
insert into foo.t1 set foo.t1.c = '1';
|
||||
drop database foo;
|
||||
|
||||
|
Reference in New Issue
Block a user