mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Merge eagle.mysql.r18.ru:/home/vva/work/mysql.orig/clear/mysql-4.1
into eagle.mysql.r18.ru:/home/vva/work/BUG_663/mysql-4.1
This commit is contained in:
@ -150,3 +150,28 @@ select last_insert_id();
|
||||
last_insert_id()
|
||||
0
|
||||
drop table t1;
|
||||
drop table if exists t1;
|
||||
Warnings:
|
||||
Note 1051 Unknown table 't1'
|
||||
create table t1(a int auto_increment,b int null,primary key(a));
|
||||
SET SQL_MODE=NO_AUTO_VALUE_ON_ZERO;
|
||||
insert into t1(a,b)values(NULL,1);
|
||||
insert into t1(a,b)values(200,2);
|
||||
insert into t1(a,b)values(0,3);
|
||||
insert into t1(b)values(4);
|
||||
SET SQL_MODE='';
|
||||
insert into t1(a,b)values(NULL,5);
|
||||
insert into t1(a,b)values(300,6);
|
||||
insert into t1(a,b)values(0,7);
|
||||
insert into t1(b)values(8);
|
||||
select * from t1;
|
||||
a b
|
||||
1 1
|
||||
200 2
|
||||
0 3
|
||||
201 4
|
||||
202 5
|
||||
300 6
|
||||
301 7
|
||||
302 8
|
||||
drop table t1;
|
||||
|
@ -106,3 +106,17 @@ select last_insert_id();
|
||||
|
||||
drop table t1;
|
||||
|
||||
drop table if exists t1;
|
||||
create table t1(a int auto_increment,b int null,primary key(a));
|
||||
SET SQL_MODE=NO_AUTO_VALUE_ON_ZERO;
|
||||
insert into t1(a,b)values(NULL,1);
|
||||
insert into t1(a,b)values(200,2);
|
||||
insert into t1(a,b)values(0,3);
|
||||
insert into t1(b)values(4);
|
||||
SET SQL_MODE='';
|
||||
insert into t1(a,b)values(NULL,5);
|
||||
insert into t1(a,b)values(300,6);
|
||||
insert into t1(a,b)values(0,7);
|
||||
insert into t1(b)values(8);
|
||||
select * from t1;
|
||||
drop table t1;
|
||||
|
Reference in New Issue
Block a user