add TODO comments

This commit is contained in:
Nash Tsai 2014-08-28 23:13:41 +08:00
parent 64790ba262
commit 05d01bf165
1 changed files with 1 additions and 0 deletions

View File

@ -651,6 +651,7 @@ func (session *Session) cacheGet(bean interface{}, sqlStr string, args ...interf
if v, ok := data[session.Statement.RefTable.PrimaryKeys[0]]; !ok { if v, ok := data[session.Statement.RefTable.PrimaryKeys[0]]; !ok {
return false, ErrCacheFailed return false, ErrCacheFailed
} else { } else {
// TODO https://github.com/go-xorm/xorm/issues/144, PK may not always be int64
id, err = strconv.ParseInt(string(v), 10, 64) id, err = strconv.ParseInt(string(v), 10, 64)
if err != nil { if err != nil {
return false, err return false, err