fix: Correctly parse jsonb column tag #2206

Merged
lunny merged 2 commits from tamalsaha/xorm:jsonb into master 2023-01-09 05:19:29 +00:00
Showing only changes of commit 33ad788414 - Show all commits

View File

@ -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 {