created 字段 在更新的时候也更更新了 #726

Closed
opened 2017-09-16 06:12:58 +00:00 by yqbaa · 1 comment
yqbaa commented 2017-09-16 06:12:58 +00:00 (Migrated from github.com)

CreateAt time.Time xorm:"created" json:"create_at"
UpdateAt time.Time xorm:"updated" json:"update_at"

执行的sql 显示是
update xxx set update_at = ? , ['2017-09-09 09:09:09']
但实际上 created_at 也被更新了

版本: ba71ae6665

CreateAt time.Time `xorm:"created" json:"create_at"` UpdateAt time.Time `xorm:"updated" json:"update_at"` 执行的sql 显示是 update xxx set update_at = ? , ['2017-09-09 09:09:09'] 但实际上 created_at 也被更新了 版本: ba71ae6665c011ae861a7093e170d995151eb56f

请查看 #727,测试代码未能重现你的问题。

请查看 #727,测试代码未能重现你的问题。
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#726
No description provided.