mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-08-31 03:07:20 +00:00
extract operator: add support for week keywords (#436)
This commit is contained in:
parent
481551c075
commit
c688bbb4de
4 changed files with 6 additions and 0 deletions
|
@ -1384,6 +1384,7 @@ fn parse_extract() {
|
|||
one_statement_parses_to("SELECT EXTRACT(year from d)", "SELECT EXTRACT(YEAR FROM d)");
|
||||
|
||||
verified_stmt("SELECT EXTRACT(MONTH FROM d)");
|
||||
verified_stmt("SELECT EXTRACT(WEEK FROM d)");
|
||||
verified_stmt("SELECT EXTRACT(DAY FROM d)");
|
||||
verified_stmt("SELECT EXTRACT(HOUR FROM d)");
|
||||
verified_stmt("SELECT EXTRACT(MINUTE FROM d)");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue