From 3792867955f590661469cc23c16e14e9d6fabb85 Mon Sep 17 00:00:00 2001 From: Lauris BH Date: Tue, 2 May 2017 03:50:33 +0300 Subject: Update xorm to latest version (#1651) * Update xorm to latest version * Update xorm/builder --- vendor/github.com/go-xorm/xorm/rows.go | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'vendor/github.com/go-xorm/xorm/rows.go') diff --git a/vendor/github.com/go-xorm/xorm/rows.go b/vendor/github.com/go-xorm/xorm/rows.go index a91d08b779..47bc322f3d 100644 --- a/vendor/github.com/go-xorm/xorm/rows.go +++ b/vendor/github.com/go-xorm/xorm/rows.go @@ -34,7 +34,10 @@ func newRows(session *Session, bean interface{}) (*Rows, error) { var sqlStr string var args []interface{} - rows.session.Statement.setRefValue(rValue(bean)) + if err := rows.session.Statement.setRefValue(rValue(bean)); err != nil { + return nil, err + } + if len(session.Statement.TableName()) <= 0 { return nil, ErrTableNotFound } @@ -113,7 +116,9 @@ func (rows *Rows) Scan(bean interface{}) error { } dataStruct := rValue(bean) - rows.session.Statement.setRefValue(dataStruct) + if err := rows.session.Statement.setRefValue(dataStruct); err != nil { + return err + } _, err := rows.session.row2Bean(rows.rows, rows.fields, len(rows.fields), bean, &dataStruct, rows.session.Statement.RefTable) return err -- cgit v1.2.3