From 8f5e437a61b813de471dbac64d3b7b230664effd Mon Sep 17 00:00:00 2001 From: maktub Date: Mon, 21 Jul 2025 18:24:41 +0000 Subject: [PATCH] fix: correct nullable field detection logic in column metadata (#2520) fix: correct nullable field detection logic in column metadata gbase8s metadata: N == NOT NULL Co-authored-by: zhangyunfei Co-authored-by: Lunny Xiao Reviewed-on: https://gitea.com/xorm/xorm/pulls/2520 Reviewed-by: Lunny Xiao Co-authored-by: maktub Co-committed-by: maktub --- dialects/gbase8s.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dialects/gbase8s.go b/dialects/gbase8s.go index 05ab7790..d3a8fd22 100644 --- a/dialects/gbase8s.go +++ b/dialects/gbase8s.go @@ -871,9 +871,9 @@ func (db *gbase8s) GetColumns(queryer core.Queryer, ctx context.Context, tableNa } if nullable != nil && *nullable == "N" { - col.Nullable = true - } else { col.Nullable = false + } else { + col.Nullable = true } if comment != nil { col.Comment = *comment