mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
fix nullable autoinc test w/o versioning
This commit is contained in:
@@ -398,6 +398,16 @@ t CREATE TABLE `t` (
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1
|
||||
call verify_vtq;
|
||||
No A B C D
|
||||
create or replace table t (a int);
|
||||
insert t values (1),(2),(3),(4);
|
||||
alter table t add b int auto_increment null unique;
|
||||
select * from t;
|
||||
a b
|
||||
1 1
|
||||
2 2
|
||||
3 3
|
||||
4 4
|
||||
drop table t;
|
||||
create or replace table t (a int) with system versioning engine=innodb;
|
||||
insert into t values (1), (2), (3);
|
||||
delete from t where a<3;
|
||||
|
@@ -205,6 +205,13 @@ alter table t drop system versioning, algorithm=copy;
|
||||
show create table t;
|
||||
call verify_vtq;
|
||||
|
||||
# nullable autoinc test w/o versioning
|
||||
create or replace table t (a int);
|
||||
insert t values (1),(2),(3),(4);
|
||||
alter table t add b int auto_increment null unique;
|
||||
select * from t;
|
||||
drop table t;
|
||||
|
||||
create or replace table t (a int) with system versioning engine=innodb;
|
||||
insert into t values (1), (2), (3);
|
||||
delete from t where a<3;
|
||||
|
@@ -3071,8 +3071,8 @@ int handler::update_auto_increment()
|
||||
table->next_number_field->set_null();
|
||||
DBUG_RETURN(0);
|
||||
}
|
||||
table->next_number_field->set_notnull();
|
||||
}
|
||||
table->next_number_field->set_notnull();
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user