We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 64f752c commit 35b9f2bCopy full SHA for 35b9f2b
src/dialect/keywords.rs
@@ -158,6 +158,7 @@ define_keywords!(
158
CYCLE,
159
D,
160
DATE,
161
+ DATETIME,
162
DAY,
163
DAYOFMONTH,
164
DAYOFWEEK,
src/parser.rs
@@ -718,6 +718,8 @@ impl<'a> Parser<'a> {
718
Keyword::DAYOFYEAR | Keyword::YEARDAY | Keyword::DOY | Keyword::DY => {
719
Ok(DateTimeField::DayOfYear)
720
}
721
+ Keyword::DATE => Ok(DateTimeField::Other("DATE")),
722
+ Keyword::DATETIME => Ok(DateTimeField::Other("DATETIME")),
723
Keyword::HOUR => Ok(DateTimeField::Hour),
724
Keyword::MINUTE => Ok(DateTimeField::Minute),
725
Keyword::SECOND => Ok(DateTimeField::Second),
0 commit comments