parser
parser copied to clipboard
Add CannotInsertFlag to indicate that this table cannot be inserted
What problem does this PR solve?
Include no_zero_date in sqlmode, these scenarios should fail to add column:
create table t (id int);
insert into t values(1);
alter table t add column a date not null;
alter table t add column a date not null;
Considering that data may be written during the DDL state change phase, need a flag to prevent data insert during this period. So add this table level flag.
What is changed and how it works?
Check List
Tests
- No code
Code changes
- Has exported variable/fields change
Side effects
Related changes
@bb7133 PTAL
@7yyo: PR needs rebase.
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.