From 33ad788414d96296c8abbd66a786d289f3373c19 Mon Sep 17 00:00:00 2001 From: Tamal Saha Date: Thu, 5 Jan 2023 18:28:15 +0600 Subject: [PATCH] Correctly parse jsonb column tag Signed-off-by: Tamal Saha --- tags/tag.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tags/tag.go b/tags/tag.go index 55f5f4cf..41d525e1 100644 --- a/tags/tag.go +++ b/tags/tag.go @@ -285,7 +285,7 @@ func CommentTagHandler(ctx *Context) error { // SQLTypeTagHandler describes SQL Type tag handler func SQLTypeTagHandler(ctx *Context) error { ctx.col.SQLType = schemas.SQLType{Name: ctx.tagUname} - if ctx.tagUname == "JSON" { + if ctx.tagUname == "JSON" || ctx.tagUname == "JSONB" { ctx.col.IsJSON = true } if len(ctx.params) == 0 {