mirror of
https://github.com/zhufuyi/sponge.git
synced 2025-10-06 09:17:19 +08:00
fix keyword bug
This commit is contained in:
@@ -271,7 +271,7 @@ func ConvertToSQLByMgoFields(tableName string, fields []*MgoField) (string, map[
|
||||
srcMongoTypeMap[ProtoSubStructKey] = strings.Join(protoObjectStrs, "\n") + "\n"
|
||||
}
|
||||
|
||||
return fmt.Sprintf("CREATE TABLE %s (\n%s\n);", tableName, fieldStr), srcMongoTypeMap
|
||||
return fmt.Sprintf("CREATE TABLE `%s` (\n%s\n);", tableName, fieldStr), srcMongoTypeMap
|
||||
}
|
||||
|
||||
// nolint
|
||||
|
Reference in New Issue
Block a user