Skip to content

Commit 7485116

Browse files
authored
Merge pull request #102 from mobley-trent/select-order-by
2 parents d8c7b3e + 05b80a2 commit 7485116

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

crates/parser/src/codegen.rs

+12
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,18 @@ mod tests {
106106
)
107107
}
108108

109+
#[test]
110+
fn test_select_with_order_by() {
111+
test_get_node_properties(
112+
"SELECT a, b, c FROM table1 ORDER BY c;",
113+
SyntaxKind::SortBy,
114+
vec![
115+
TokenProperty::from(SyntaxKind::Order),
116+
TokenProperty::from(SyntaxKind::By),
117+
],
118+
)
119+
}
120+
109121
#[test]
110122
fn test_create_domain() {
111123
test_get_node_properties(

0 commit comments

Comments
 (0)