From 7f4d6d1f145185d862f5f9019a976d6351e61b08 Mon Sep 17 00:00:00 2001 From: sev7ndayyoo <47801637+sev7ndayyoo@users.noreply.github.com> Date: Sat, 19 Dec 2020 18:53:52 +0800 Subject: [PATCH] Add CannotInsertFlag to indicate that this table cannot be inserted --- model/model.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/model/model.go b/model/model.go index 96d552520..ddb7a16ad 100644 --- a/model/model.go +++ b/model/model.go @@ -326,6 +326,9 @@ type TableInfo struct { // IsColumnar means the table is column-oriented. // It's true when the engine of the table is TiFlash only. IsColumnar bool `json:"is_columnar"` + + // Can't insert when table 'add column date/datetime not null' during ddl in NO_ZERO_DATE. + CannotInsertFlag bool `can_not_insert_flag` } // TableLockInfo provides meta data describing a table lock.