From b304c9f3f4b92b19d0598d05523f4a83800935b0 Mon Sep 17 00:00:00 2001 From: Tobie Morgan Hitchcock Date: Mon, 20 Feb 2017 01:45:09 +0000 Subject: [PATCH] Add RETURN NULL / VOID / EMPTY query functionality --- db/return.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/db/return.go b/db/return.go index 6d75d747..0d643116 100644 --- a/db/return.go +++ b/db/return.go @@ -29,6 +29,12 @@ func (e *executor) executeReturnStatement(ast *sql.ReturnStatement) (out []inter switch what := ast.What.(type) { default: out = append(out, what) + case *sql.Null: + out = append(out, nil) + case *sql.Void: + // Ignore + case *sql.Empty: + // Ignore case *sql.Param: out = append(out, e.ctx.Get(what.ID).Data()) }