mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-11-25 00:19:37 +00:00
Reverted change
This commit is contained in:
parent
36b3e66951
commit
716efdc85d
1 changed files with 3 additions and 4 deletions
|
|
@ -10245,10 +10245,9 @@ impl<'a> Parser<'a> {
|
|||
// Check if there's a comma, indicating multiple strings (e.g., AS 'obj_file', 'link_symbol')
|
||||
// This is used for C language functions: AS 'MODULE_PATHNAME', 'link_symbol'
|
||||
if self.consume_token(&Token::Comma) {
|
||||
Ok(Expr::Tuple(vec![
|
||||
first_expr,
|
||||
self.parse_comma_separated(parse_string_expr)?
|
||||
]))
|
||||
let mut exprs = vec![first_expr];
|
||||
exprs.extend(self.parse_comma_separated(parse_string_expr)?);
|
||||
Ok(Expr::Tuple(exprs))
|
||||
} else {
|
||||
Ok(first_expr)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue