From ac2b9aee1ce888a36c0c63d746dd0226e4c8688e Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Tue, 1 May 2001 02:33:55 +0000 Subject: [PATCH] Synced gram.y and preproc.y. --- src/interfaces/ecpg/preproc/preproc.y | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/interfaces/ecpg/preproc/preproc.y b/src/interfaces/ecpg/preproc/preproc.y index 13f67a3692..345efb6576 100644 --- a/src/interfaces/ecpg/preproc/preproc.y +++ b/src/interfaces/ecpg/preproc/preproc.y @@ -3479,8 +3479,13 @@ extract_list: extract_arg FROM a_expr { $$ = EMPTY; } ; +/* 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 { $$ = make_str("timezone_hour"); } | TIMEZONE_MINUTE { $$ = make_str("timezone_minute"); } ; -- 2.40.0