Add support for NULL values

This commit is contained in:
nxshock 2022-10-05 19:45:04 +05:00
parent 219a519ff8
commit 22e7c395ec

View File

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