mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-08-04 06:18:17 +00:00
Don't Box<ASTNode> in SQLStatement
This used to be needed when it was a variant in the ASTNode enum itself.
This commit is contained in:
parent
3619e89e9c
commit
c5bbfc33fd
4 changed files with 13 additions and 13 deletions
|
@ -224,7 +224,7 @@ fn parse_create_table_from_pg_dump() {
|
|||
|
||||
let c_create_date1 = &columns[8];
|
||||
assert_eq!(
|
||||
Some(Box::new(ASTNode::SQLCast {
|
||||
Some(ASTNode::SQLCast {
|
||||
expr: Box::new(ASTNode::SQLCast {
|
||||
expr: Box::new(ASTNode::SQLValue(Value::SingleQuotedString(
|
||||
"now".to_string()
|
||||
|
@ -232,7 +232,7 @@ fn parse_create_table_from_pg_dump() {
|
|||
data_type: SQLType::Text
|
||||
}),
|
||||
data_type: SQLType::Date
|
||||
})),
|
||||
}),
|
||||
c_create_date1.default
|
||||
);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue