mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-08-29 02:14:07 +00:00
fix: Add support for MAX
for NVARCHAR
(#1232)
This commit is contained in:
parent
547c5cde14
commit
b51f2a0c25
4 changed files with 10 additions and 6 deletions
|
@ -2258,7 +2258,10 @@ fn parse_cast() {
|
|||
&Expr::Cast {
|
||||
kind: CastKind::Cast,
|
||||
expr: Box::new(Expr::Identifier(Ident::new("id"))),
|
||||
data_type: DataType::Nvarchar(Some(50)),
|
||||
data_type: DataType::Nvarchar(Some(CharacterLength::IntegerLength {
|
||||
length: 50,
|
||||
unit: None,
|
||||
})),
|
||||
format: None,
|
||||
},
|
||||
expr_from_projection(only(&select.projection))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue