mirror of
https://github.com/tursodatabase/limbo.git
synced 2025-08-04 18:18:03 +00:00
Merge 'remove detection of comments in the middle of query in cli' from Pedro Muniz
I was trying to run the TPC-H 9.sql in the CLI, but it kept truncating my input due to a comment that is present in the query. After removing it, I can just copy and paste the query and it works. @PThorpe92 is it safe to remove this? Or is there a particular reason that was included that I am not aware of? Closes #1525
This commit is contained in:
commit
58bff43f1f
1 changed files with 0 additions and 7 deletions
|
@ -537,13 +537,6 @@ impl Limbo {
|
|||
}
|
||||
return Ok(());
|
||||
}
|
||||
|
||||
if let Some(comment_pos) = line.find("--") {
|
||||
let before_comment = line[..comment_pos].trim();
|
||||
if !before_comment.is_empty() {
|
||||
return self.handle_input_line(before_comment);
|
||||
}
|
||||
}
|
||||
if line.ends_with(';') {
|
||||
self.buffer_input(line);
|
||||
let buff = self.input_buff.clone();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue