Fix bug that id type cannot be blob

This commit is contained in:
RideWindX 2018-07-24 13:54:03 +08:00 committed by GitHub
parent 545f30f5cc
commit c9f074e293
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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")