From f2368689b2c27ccc71a78adf52fee0e2d859952c Mon Sep 17 00:00:00 2001 From: Nut He <18328704+hetao92@users.noreply.github.com> Date: Fri, 15 Jan 2021 13:48:21 +0800 Subject: [PATCH] feat: support empty type (#4) * feat: support empty type * feat: update data --- .gitignore | 2 +- service/dao/dao.go | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 66fd13c..55cc753 100644 --- a/.gitignore +++ b/.gitignore @@ -4,7 +4,7 @@ *.dll *.so *.dylib - +tmp # Test binary, built with `go test -c` *.test diff --git a/service/dao/dao.go b/service/dao/dao.go index cd8a7f3..396c97e 100644 --- a/service/dao/dao.go +++ b/service/dao/dao.go @@ -64,6 +64,8 @@ func getBasicValue(valWarp *nebula.ValueWrapper) (common.Any, error) { return valWarp.AsTime() } else if valType == "datetime" { return valWarp.AsDateTime() + } else if valType == "empty" { + return "_EMPTY_", nil } return "", nil }