TableName not called in Find #891

Closed
opened 2018-04-13 08:04:09 +00:00 by localvar · 4 comments
localvar commented 2018-04-13 08:04:09 +00:00 (Migrated from github.com)
type ABC struct {
  ID uint64 `xorm:"'ID' pk autoincr"`
}

func (abc *ABC) TableName() {
    return "abc"
}

var arr []ABC
db.Find(&arr)

failed with error: Error 1146: Table 'db1.a_b_c' doesn't exist

go version: go1.10.1 linux/amd64
xorm: v0.6.4

```go type ABC struct { ID uint64 `xorm:"'ID' pk autoincr"` } func (abc *ABC) TableName() { return "abc" } var arr []ABC db.Find(&arr) ``` failed with error: Error 1146: Table 'db1.a_b_c' doesn't exist go version: go1.10.1 linux/amd64 xorm: v0.6.4

@localvar please upgrade to lastest version. This issue has been reported in https://github.com/go-xorm/xorm/issues/881 and resolved by https://github.com/go-xorm/xorm/pull/887

@localvar please upgrade to lastest version. This issue has been reported in https://github.com/go-xorm/xorm/issues/881 and resolved by https://github.com/go-xorm/xorm/pull/887
localvar commented 2018-04-13 09:39:49 +00:00 (Migrated from github.com)

ok, I will try it.
but seems this fix is only in master but not v0.6.5, and I'd like to use a stable version. so, could a new version be release soon?

ok, I will try it. but seems this fix is only in master but not v0.6.5, and I'd like to use a **stable** version. so, could a new version be release soon?

done. v0.6.6

done. v0.6.6
localvar commented 2018-04-13 09:52:03 +00:00 (Migrated from github.com)

thanks, confirm fixed!

thanks, confirm fixed!
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: xorm/xorm#891
No description provided.