Add RETURN NULL / VOID / EMPTY query functionality
This commit is contained in:
parent
631fd694a8
commit
b304c9f3f4
1 changed files with 6 additions and 0 deletions
|
@ -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())
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue