用了.Table后,开启缓存无法找到准确的表名 #376

Open
opened 2016-04-13 08:26:00 +00:00 by leisunstar · 2 comments
leisunstar commented 2016-04-13 08:26:00 +00:00 (Migrated from github.com)
l := make([]*ActiveData, 0)
err = XormEngine.Table("active-2016-01-02").Where("area=", area).Find(&l)

Error 1146: Table 'test.active_data' doesn't exist

``` l := make([]*ActiveData, 0) err = XormEngine.Table("active-2016-01-02").Where("area=", area).Find(&l) ``` Error 1146: Table 'test.active_data' doesn't exist

我测试下

我测试下
haorendashu commented 2018-07-27 16:50:09 +00:00 (Migrated from github.com)
func (o *Category) TableName() string {
	return c.TablePre + "category"
}

我使用tableName之后,每次根据id 查询,也没法读取缓存
``` func (o *Category) TableName() string { return c.TablePre + "category" } 我使用tableName之后,每次根据id 查询,也没法读取缓存 ```
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#376
No description provided.