636 Adjusting VARBINARY and BINARY with optional precision (#637)

This commit is contained in:
AugustoFKL 2022-10-01 17:52:44 -03:00 committed by GitHub
parent c2d68255d0
commit 300e28bd85
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 22 additions and 10 deletions

View file

@ -1670,7 +1670,7 @@ fn parse_cast() {
assert_eq!(
&Expr::Cast {
expr: Box::new(Expr::Identifier(Ident::new("id"))),
data_type: DataType::Binary(50)
data_type: DataType::Binary(Some(50))
},
expr_from_projection(only(&select.projection))
);
@ -1680,7 +1680,7 @@ fn parse_cast() {
assert_eq!(
&Expr::Cast {
expr: Box::new(Expr::Identifier(Ident::new("id"))),
data_type: DataType::Varbinary(50)
data_type: DataType::Varbinary(Some(50))
},
expr_from_projection(only(&select.projection))
);