Skip to content

Commit dced7b1

Browse files
committed
- Remove DAYOFWEEK from intervals, add WEEKDAY to valid intervals
1 parent 9960b5e commit dced7b1

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/alasqlparser.jison

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ SETS return 'SET'
283283
'WHILE' return 'WHILE'
284284
'WITH' return 'WITH'
285285
'WEEK' return 'WEEK'
286-
'WEEKDAY' return 'DAYOFWEEK'
286+
'WEEKDAY' return 'WEEKDAY'
287287
'WORK' return 'TRANSACTION' /* Is this keyword required? */
288288
'YEAR' return 'YEAR'
289289
(\d+\.?\d*|\.\d+)([eE][+-]?\d+)? return 'NUMBER'
@@ -608,7 +608,7 @@ IntervalLiteral
608608
| MINUTE
609609
| HOUR
610610
| DAY
611-
| DAYOFWEEK
611+
| WEEKDAY
612612
| DAYOFYEAR
613613
| WEEK
614614
| MONTH

0 commit comments

Comments
 (0)