Skip to content

Commit 8b96b2e

Browse files
committed
Comment fix
1 parent 0e23acc commit 8b96b2e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/parser.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5252,8 +5252,8 @@ impl<'a> Parser<'a> {
52525252
} else {
52535253
vec![]
52545254
};
5255-
// If the projection is done over a named window,
5256-
// that window name must be defined. That check is done here.
5255+
// If the projection is done over a named window, that window
5256+
// name must be defined. Otherwise, it gives an error.
52575257
for proj in &projection {
52585258
if let SelectItem::ExprWithAlias {
52595259
expr: Expr::Function(f),

tests/sqlparser_common.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3276,7 +3276,7 @@ fn parse_window_functions() {
32763276
}
32773277

32783278
#[test]
3279-
fn parse_named_window() {
3279+
fn test_parse_named_window() {
32803280
let sql = "SELECT \
32813281
MIN(c12) OVER window1 AS min1, \
32823282
MAX(c12) OVER window2 AS max1 \

0 commit comments

Comments
 (0)