Skip to content

Commit d3c5fa4

Browse files
authored
fix xorm id tag (#3)
* fix xorm id tag * given a column name
1 parent 93a5a42 commit d3c5fa4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

benchs/models.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ func NewModel4() *Model4 {
137137

138138
// Model for XORM
139139
type Model5 struct {
140-
ID int `xorm:"id"`
140+
ID int `xorm:"pk autoincr 'id'"`
141141
Name string
142142
Title string
143143
Fax string

0 commit comments

Comments
 (0)