From abdf59f46dd3af6795eda435bbae4c5a020996fd Mon Sep 17 00:00:00 2001 From: Jinzhu Date: Sat, 16 Nov 2013 07:34:01 +0800 Subject: [PATCH] Add blob for Sqlite3 --- dialect/sqlite3.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dialect/sqlite3.go b/dialect/sqlite3.go index 84e37c48..c6731b6d 100644 --- a/dialect/sqlite3.go +++ b/dialect/sqlite3.go @@ -28,6 +28,8 @@ func (s *sqlite3) SqlTag(column interface{}, size int) string { return "bigint" case float32, float64, sql.NullFloat64: return "real" + case []byte: + return "blob" case string, sql.NullString: if size > 0 && size < 65532 { return fmt.Sprintf("varchar(%d)", size)