fix: Add support for MAX for NVARCHAR (#1232)

This commit is contained in:
Simon Sawert 2024-04-26 19:56:37 +02:00 committed by GitHub
parent 547c5cde14
commit b51f2a0c25
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 10 additions and 6 deletions

View file

@ -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))