mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-10-15 00:09:02 +00:00
Add "timezone_region" and "timezone_abbr" support for EXTRACT
(and DATE_PART
) (#1090)
This commit is contained in:
parent
5d66dc5dc9
commit
3ec337ec5f
4 changed files with 10 additions and 0 deletions
|
@ -1800,8 +1800,10 @@ impl<'a> Parser<'a> {
|
|||
Keyword::QUARTER => Ok(DateTimeField::Quarter),
|
||||
Keyword::TIME => Ok(DateTimeField::Time),
|
||||
Keyword::TIMEZONE => Ok(DateTimeField::Timezone),
|
||||
Keyword::TIMEZONE_ABBR => Ok(DateTimeField::TimezoneAbbr),
|
||||
Keyword::TIMEZONE_HOUR => Ok(DateTimeField::TimezoneHour),
|
||||
Keyword::TIMEZONE_MINUTE => Ok(DateTimeField::TimezoneMinute),
|
||||
Keyword::TIMEZONE_REGION => Ok(DateTimeField::TimezoneRegion),
|
||||
_ => self.expected("date/time field", next_token),
|
||||
},
|
||||
_ => self.expected("date/time field", next_token),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue