瀏覽代碼

Add support for jsonb

xormplus 9 年之前
父節點
當前提交
608c49847e
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      type.go

+ 1 - 1
type.go

@@ -54,7 +54,7 @@ func (s *SQLType) IsNumeric() bool {
 }
 }
 
 
 func (s *SQLType) IsJson() bool {
 func (s *SQLType) IsJson() bool {
-	return s.Name == Json
+	return s.Name == Json || s.Name == Jsonb
 }
 }
 
 
 var (
 var (