What was happening is that ["[;", "]"] would get glued to "[; ]", which of course can never complete. It would be good to add tests of this, but the existing multi-line `InputReader` makes that challenging and I don't want to invest the time to improve it: I expect it to be overhauled as part of a transition away from parsing with `combine` and toward parsing with `rust-peg`.
This commit is contained in:
parent
60a57ea493
commit
8e2d795778
1 changed files with 3 additions and 3 deletions
|
@ -133,13 +133,13 @@ impl InputReader {
|
||||||
// If there is no in process command, we parse the read in line as a new command.
|
// If there is no in process command, we parse the read in line as a new command.
|
||||||
let cmd = match &self.in_process_cmd {
|
let cmd = match &self.in_process_cmd {
|
||||||
&Some(Command::QueryPrepared(ref args)) => {
|
&Some(Command::QueryPrepared(ref args)) => {
|
||||||
Ok(Command::QueryPrepared(args.clone() + " " + &line))
|
Ok(Command::QueryPrepared(args.clone() + "\n" + &line))
|
||||||
},
|
},
|
||||||
&Some(Command::Query(ref args)) => {
|
&Some(Command::Query(ref args)) => {
|
||||||
Ok(Command::Query(args.clone() + " " + &line))
|
Ok(Command::Query(args.clone() + "\n" + &line))
|
||||||
},
|
},
|
||||||
&Some(Command::Transact(ref args)) => {
|
&Some(Command::Transact(ref args)) => {
|
||||||
Ok(Command::Transact(args.clone() + " " + &line))
|
Ok(Command::Transact(args.clone() + "\n" + &line))
|
||||||
},
|
},
|
||||||
_ => {
|
_ => {
|
||||||
command(&self.buffer)
|
command(&self.buffer)
|
||||||
|
|
Loading…
Reference in a new issue