fix bug: miss time import (#36)
* add execute files * add protoc-osx * add rpc generation * add rpc generation * add: rpc template generation * optimize gomod cache * add README.md * format error * reactor templatex.go * update project.go & README.md * fix bug: miss time import
This commit is contained in:
@@ -22,7 +22,7 @@ func genDelete(table Table, withCache bool) (string, error) {
|
||||
}
|
||||
var containsIndexCache = false
|
||||
for _, item := range table.Fields {
|
||||
if item.IsKey {
|
||||
if item.IsKey && !item.IsPrimaryKey {
|
||||
containsIndexCache = true
|
||||
break
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user