Skip to content
This repository was archived by the owner on Jun 6, 2019. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions xorm/go.go
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,8 @@ func tag(table *core.Table, col *core.Column) string {
nstr += ")"
}
res = append(res, nstr)
//将原列名称append到生成的xorm字符串后面
res = append(res, "'"+col.Name+"'")

var tags []string
if genJson {
Expand Down