mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-07-16 04:54:59 +00:00
636 Adjusting VARBINARY and BINARY with optional precision (#637)
This commit is contained in:
parent
c2d68255d0
commit
300e28bd85
3 changed files with 22 additions and 10 deletions
|
@ -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))
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue