From 22e7c395ec085fa584990b414fa5f4a260d455cb Mon Sep 17 00:00:00 2001 From: nxshock Date: Wed, 5 Oct 2022 19:45:04 +0500 Subject: [PATCH] Add support for NULL values --- types.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/types.go b/types.go index 8c4f933..9a261d1 100644 --- a/types.go +++ b/types.go @@ -22,6 +22,10 @@ const ( func (ft FieldType) ParseValue(s string) (any, error) { s = strings.TrimSpace(s) + if s == "" { + return nil, nil + } + switch ft { case String: return s, nil