File tree 1 file changed +5
-2
lines changed
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -137,7 +137,8 @@ func dmlIgnoreError(err error) bool {
137
137
strings .Contains (errStr , "value is out of range in" ) ||
138
138
strings .Contains (errStr , "Data Too Long" ) ||
139
139
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" ) {
141
142
return true
142
143
}
143
144
return false
@@ -180,7 +181,9 @@ func ddlIgnoreError(err error) bool {
180
181
strings .Contains (errStr , "cannot convert" ) ||
181
182
strings .Contains (errStr , "Data Too Long" ) ||
182
183
// 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" ) {
184
187
fmt .Println (errStr )
185
188
return true
186
189
}
You can’t perform that action at this time.
0 commit comments