f-fix spell (#381)

Co-authored-by: chenwenjie <chenwenjie@zzstc.cn>
This commit is contained in:
文杰
2021-01-13 18:07:31 +08:00
committed by GitHub
parent 7f49bd8a31
commit 3285436f75
3 changed files with 8 additions and 8 deletions

View File

@@ -22,12 +22,12 @@ func genInsert(table Table, withCache bool) (string, string, error) {
expressions := make([]string, 0)
expressionValues := make([]string, 0)
for _, filed := range table.Fields {
camel := filed.Name.ToCamel()
for _, field := range table.Fields {
camel := field.Name.ToCamel()
if camel == "CreateTime" || camel == "UpdateTime" {
continue
}
if filed.IsPrimaryKey && table.PrimaryKey.AutoIncrement {
if field.IsPrimaryKey && table.PrimaryKey.AutoIncrement {
continue
}
expressions = append(expressions, "?")