SAP / go-ase

SAP ASE Database Client for Go
Apache License 2.0
25 stars 14 forks source link

Fix reading commands from stdin for cgoase/goase #80

Closed ntnn closed 4 years ago

ntnn commented 4 years ago

Description

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.

How was the patch tested?

make lint and make test.