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:
Nickolay Ponomarev 2019-01-31 15:30:06 +03:00
parent 3619e89e9c
commit c5bbfc33fd
4 changed files with 13 additions and 13 deletions

View file

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