|
@@ -14,7 +14,7 @@ import (
|
|
func genUpdate(table Table, withCache, postgreSql bool) (string, string, error) {
|
|
func genUpdate(table Table, withCache, postgreSql bool) (string, string, error) {
|
|
expressionValues := make([]string, 0)
|
|
expressionValues := make([]string, 0)
|
|
for _, field := range table.Fields {
|
|
for _, field := range table.Fields {
|
|
- camel := field.Name.ToCamel()
|
|
|
|
|
|
+ camel := util.SafeString(field.Name.ToCamel())
|
|
if camel == "CreateTime" || camel == "UpdateTime" {
|
|
if camel == "CreateTime" || camel == "UpdateTime" {
|
|
continue
|
|
continue
|
|
}
|
|
}
|