浏览代码

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 {
-	return s.Name == Json
+	return s.Name == Json || s.Name == Jsonb
 }
 
 var (