style: 忽略列数不匹配错误的日志输出
This commit is contained in:
@@ -119,7 +119,6 @@ func processSQLFile(db *gorm.DB, filePath string) {
|
|||||||
} else if strings.Contains(errorStr, "doesn't match") {
|
} else if strings.Contains(errorStr, "doesn't match") {
|
||||||
// 忽略列数不匹配错误
|
// 忽略列数不匹配错误
|
||||||
// Error 1136 (21S01): Column count doesn't match value count at row 1
|
// Error 1136 (21S01): Column count doesn't match value count at row 1
|
||||||
log.Println(err.Error())
|
|
||||||
} else {
|
} else {
|
||||||
// 其他错误终止程序
|
// 其他错误终止程序
|
||||||
log.Fatalln(errorStr)
|
log.Fatalln(errorStr)
|
||||||
|
|||||||
Reference in New Issue
Block a user