Skip to content

Commit d9dd20e

Browse files
authored
chore: ignore empty SemiColon line (#622)
1 parent be2ebc2 commit d9dd20e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cli/src/session.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ impl Session {
502502
if is_end_query || is_slash_g {
503503
// push to current and continue the tokenizer
504504
let (sql, remain) = self.query.split_at(token.span.end as usize);
505-
if is_valid && !sql.is_empty() {
505+
if is_valid && !sql.is_empty() && sql.trim() != ";" {
506506
queries.push(sql.to_string());
507507
}
508508
self.query = remain.to_string();

0 commit comments

Comments
 (0)