Merge branch 'master' of github.com:cochainio/xorm

This commit is contained in:
RideWindX 2018-07-24 14:02:32 +08:00
commit 3960b20bf1
1 changed files with 1 additions and 1 deletions

View File

@ -1134,7 +1134,7 @@ func (engine *Engine) idTypeAssertion(col *core.Column, sid string) (interface{}
return nil, err
}
return n, nil
} else if col.SQLType.IsText() {
} else if col.SQLType.IsText() || col.SQLType.IsBlob() {
return sid, nil
} else {
return nil, errors.New("not supported")