Skip to content

Commit

Permalink
[#153] ast 테스트코드 개선
Browse files Browse the repository at this point in the history
  • Loading branch information
myyrakle committed Aug 15, 2024
1 parent b86da00 commit c597394
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/ast/dml/insert.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,14 +80,14 @@ mod tests {
.build();

assert_eq!(
insert_query,
InsertQuery {
SQLStatement::from(insert_query),
SQLStatement::DML(DMLStatement::InsertQuery(InsertQuery {
into_table: Some(TableName::new(None, "table".into())),
columns: vec!["a".into(), "b".into()],
data: InsertData::Values(vec![InsertValue {
list: vec![Some(SQLExpression::String("a".into()))],
}]),
}
}))
);
}
}
6 changes: 3 additions & 3 deletions src/ast/dml/select.rs
Original file line number Diff line number Diff line change
Expand Up @@ -299,8 +299,8 @@ mod tests {
.build();

assert_eq!(
select_query,
SelectQuery {
SQLStatement::from(select_query),
SQLStatement::DML(DMLStatement::SelectQuery(SelectQuery {
select_items: vec![SelectKind::SelectItem(SelectItem {
item: Some(SQLExpression::String("a".into())),
alias: None
Expand All @@ -314,7 +314,7 @@ mod tests {
limit: None,
offset: None,
has_aggregate: false,
}
}))
);
}
}

0 comments on commit c597394

Please sign in to comment.