add TODO comments
This commit is contained in:
parent
64790ba262
commit
05d01bf165
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue