Always use NO_AUTO_VALUE_ON_ZERO
This commit is contained in:
parent
d6c650837f
commit
4d7370529b
9
localtests/autoinc-zero-value/create.sql
Normal file
9
localtests/autoinc-zero-value/create.sql
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
drop table if exists gh_ost_test;
|
||||||
|
create table gh_ost_test (
|
||||||
|
id int auto_increment,
|
||||||
|
i int not null,
|
||||||
|
primary key(id)
|
||||||
|
) auto_increment=1;
|
||||||
|
|
||||||
|
set session sql_mode='NO_AUTO_VALUE_ON_ZERO';
|
||||||
|
insert into gh_ost_test values (0, 23);
|
Loading…
Reference in New Issue
Block a user