Jelajahi Sumber

Add support for jsonb

xormplus 9 tahun lalu
induk
melakukan
608c49847e
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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 (