mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-08-04 06:18:17 +00:00
Don't consume a second DoubleColon in parse_pg_cast
The function is invoked after a DoubleColon was already matched.
This commit is contained in:
parent
dce09f8054
commit
89cfa9e599
1 changed files with 0 additions and 1 deletions
|
@ -246,7 +246,6 @@ impl Parser {
|
|||
|
||||
/// Parse a postgresql casting style which is in the form of `expr::datatype`
|
||||
pub fn parse_pg_cast(&mut self, expr: ASTNode) -> Result<ASTNode, ParserError> {
|
||||
let _ = self.consume_token(&Token::DoubleColon)?;
|
||||
Ok(ASTNode::SQLCast {
|
||||
expr: Box::new(expr),
|
||||
data_type: self.parse_data_type()?,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue