diff --git a/crates/parser/src/codegen.rs b/crates/parser/src/codegen.rs index f0b631f2..1b7ff8e6 100644 --- a/crates/parser/src/codegen.rs +++ b/crates/parser/src/codegen.rs @@ -106,6 +106,18 @@ mod tests { ) } + #[test] + fn test_select_with_order_by() { + test_get_node_properties( + "SELECT a, b, c FROM table1 ORDER BY c;", + SyntaxKind::SortBy, + vec![ + TokenProperty::from(SyntaxKind::Order), + TokenProperty::from(SyntaxKind::By), + ], + ) + } + #[test] fn test_create_domain() { test_get_node_properties(