From c9f074e2931adffc8b374c13b7063f97a8a91610 Mon Sep 17 00:00:00 2001 From: RideWindX Date: Tue, 24 Jul 2018 13:54:03 +0800 Subject: [PATCH] Fix bug that id type cannot be blob --- engine.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine.go b/engine.go index 846889c3..bc77bfbd 100644 --- a/engine.go +++ b/engine.go @@ -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")