aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2001-05-01 02:33:55 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2001-05-01 02:33:55 +0000
commitac2b9aee1ce888a36c0c63d746dd0226e4c8688e (patch)
tree9f38357d6d1b587cf0bc3e1caf1162e7f50ec3c5 /src
parentd63571a7f4639155d2dd1ca703a9b720d6e48e16 (diff)
downloadpostgresql-ac2b9aee1ce888a36c0c63d746dd0226e4c8688e.tar.gz
postgresql-ac2b9aee1ce888a36c0c63d746dd0226e4c8688e.zip
Synced gram.y and preproc.y.
Diffstat (limited to 'src')
-rw-r--r--src/interfaces/ecpg/preproc/preproc.y7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/interfaces/ecpg/preproc/preproc.y b/src/interfaces/ecpg/preproc/preproc.y
index 13f67a3692d..345efb6576e 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"); }
;