Running e.g. goase 'select * from table' doesn't yield any output as the repl code exits directly after io.EOF.
Additionally the parsing code discarded the last statement in a passed line.
This worked in an interactive repl as here the command line didn't actually submit any statements until the last character overall is a semicolon.
Description
Running e.g.
goase 'select * from table'
doesn't yield any output as the repl code exits directly afterio.EOF
. Additionally the parsing code discarded the last statement in a passed line.This worked in an interactive repl as here the command line didn't actually submit any statements until the last character overall is a semicolon.
How was the patch tested?
make lint
andmake test
.