Skip to content

Commit 988cb7a

Browse files
committed
add more error filter
Signed-off-by: Weizhen Wang <[email protected]>
1 parent a86e2fe commit 988cb7a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

ddl/run.go

+5-2
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,8 @@ func dmlIgnoreError(err error) bool {
137137
strings.Contains(errStr, "value is out of range in") ||
138138
strings.Contains(errStr, "Data Too Long") ||
139139
strings.Contains(errStr, "doesn't have a default value") ||
140-
strings.Contains(errStr, "specified twice") {
140+
strings.Contains(errStr, "specified twice") ||
141+
strings.Contains(errStr, "cannot convert datum from decimal to type year") {
141142
return true
142143
}
143144
return false
@@ -180,7 +181,9 @@ func ddlIgnoreError(err error) bool {
180181
strings.Contains(errStr, "cannot convert") ||
181182
strings.Contains(errStr, "Data Too Long") ||
182183
// eg: For v"BLOB/TEXT column '319de167-6d2e-4778-966c-60b95103a02c' used in key specification without a key length"
183-
strings.Contains(errStr, "used in key specification without a key length") {
184+
strings.Contains(errStr, "used in key specification without a key length") ||
185+
strings.Contains(errStr, "Too many keys specified; max 64 keys allowed") ||
186+
strings.Contains(errStr, "BLOB/TEXT/JSON column can't have a default value") {
184187
fmt.Println(errStr)
185188
return true
186189
}

0 commit comments

Comments
 (0)