mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-10-08 21:20:33 +00:00
Add span for Expr::TypedString
(#1919)
This commit is contained in:
parent
be2d2f14e7
commit
9020385c02
7 changed files with 155 additions and 47 deletions
|
@ -1521,7 +1521,7 @@ impl<'a> Parser<'a> {
|
|||
DataType::Custom(..) => parser_err!("dummy", loc),
|
||||
data_type => Ok(Expr::TypedString {
|
||||
data_type,
|
||||
value: parser.parse_value()?.value,
|
||||
value: parser.parse_value()?,
|
||||
}),
|
||||
}
|
||||
})?;
|
||||
|
@ -1708,10 +1708,9 @@ impl<'a> Parser<'a> {
|
|||
}
|
||||
|
||||
fn parse_geometric_type(&mut self, kind: GeometricTypeKind) -> Result<Expr, ParserError> {
|
||||
let value: Value = self.parse_value()?.value;
|
||||
Ok(Expr::TypedString {
|
||||
data_type: DataType::GeometricType(kind),
|
||||
value,
|
||||
value: self.parse_value()?,
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue