fix keyword bug

This commit is contained in:
zhuyasen
2024-06-24 00:12:56 +08:00
parent a432349483
commit 92be671b11
3 changed files with 3 additions and 3 deletions

View File

@@ -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