This is an extension to the SQL9x standard, but is consistant with usage
of the underlying date_part() function used to implement it.
Example: EXTRACT('YEAR',...)
No impact on regression tests.
{ $$ = NIL; }
;
+/* Allow delimited string SCONST in extract_arg as an SQL extension.
+ * - thomas 2001-04-12
+ */
+
extract_arg: datetime { $$ = $1; }
- | IDENT { $$ = $1; }
+ | SCONST { $$ = $1; }
+ | IDENT { $$ = $1; }
| TIMEZONE_HOUR { $$ = "tz_hour"; }
| TIMEZONE_MINUTE { $$ = "tz_minute"; }
;