consume semi colon at the end of select and delete queries

This commit is contained in:
virattara 2018-10-16 20:01:07 +05:30
parent 70a3ae93c8
commit b75a22ce2e

View file

@ -1088,6 +1088,8 @@ impl Parser {
None
};
let _ = self.consume_token(&Token::SemiColon);
// parse next token
if let Some(next_token) = self.peek_token() {
parser_err!(format!(
@ -1144,6 +1146,8 @@ impl Parser {
None
};
let _ = self.consume_token(&Token::SemiColon);
if let Some(next_token) = self.peek_token() {
parser_err!(format!(
"Unexpected token at end of SELECT: {:?}",