Skip to content

Commit

Permalink
Update src/parser/mod.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Ifeanyi Ubah <ify1992@yahoo.com>
  • Loading branch information
Lordworms and iffyio committed Mar 17, 2024
1 parent e9e0719 commit 5a1419c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/parser/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -853,12 +853,14 @@ impl<'a> Parser<'a> {

Ok(Statement::ReleaseSavepoint { name })
}

pub fn parse_column_with_data_type(&mut self) -> Result<Expr, ParserError> {
self.expect_token(&Token::LBrace)?;
let column_with_data_type = self.parse_expr()?;
self.expect_token(&Token::RBrace)?;
Ok(column_with_data_type)
}

/// Parse an expression prefix
pub fn parse_prefix(&mut self) -> Result<Expr, ParserError> {
// allow the dialect to override prefix parsing
Expand Down

0 comments on commit 5a1419c

Please sign in to comment.