mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-11-11 19:43:47 +00:00
feat: Support LOCALTIME and LOCALTIMESTAMP time functions (#592)
This commit is contained in:
parent
bccd63ea07
commit
0bb49cea99
2 changed files with 37 additions and 1 deletions
|
|
@ -438,7 +438,11 @@ impl<'a> Parser<'a> {
|
|||
special: true,
|
||||
}))
|
||||
}
|
||||
Keyword::CURRENT_TIMESTAMP | Keyword::CURRENT_TIME | Keyword::CURRENT_DATE => {
|
||||
Keyword::CURRENT_TIMESTAMP
|
||||
| Keyword::CURRENT_TIME
|
||||
| Keyword::CURRENT_DATE
|
||||
| Keyword::LOCALTIME
|
||||
| Keyword::LOCALTIMESTAMP => {
|
||||
self.parse_time_functions(ObjectName(vec![w.to_ident()]))
|
||||
}
|
||||
Keyword::CASE => self.parse_case_expr(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue