Przeglądaj źródła

Add support for jsonb

xormplus 9 lat temu
rodzic
commit
608c49847e
1 zmienionych plików z 1 dodań i 1 usunięć
  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 (