mirror of
https://github.com/zeromicro/go-zero.git
synced 2025-01-24 09:40:24 +08:00
fabea4c448
* fix bug: crash when generate model with goctl. situation: column name with line. CREATE TABLE test ( id int NOT NULL AUTO_INCREMENT, zh-cn text CHARACTER SET utf8 COLLATE utf8_general_ci COMMENT '中文简体', PRIMARY KEY (id) USING BTREE, ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; * group imports group imports * Use go-zero/tools/goctl/util/string.go func SafeString(in string) string { instead of ReplaceAll Co-authored-by: 方航 <fanghang@tange.ai> |
||
---|---|---|
.. | ||
delete.go | ||
field.go | ||
findone.go | ||
findonebyfield.go | ||
gen_test.go | ||
gen.go | ||
imports.go | ||
insert.go | ||
keys_test.go | ||
keys.go | ||
new.go | ||
tablename.go | ||
tag.go | ||
template_test.go | ||
template.go | ||
types.go | ||
update.go | ||
vars.go |