]> granicus.if.org Git - postgresql/commitdiff
Synced gram.y and preproc.y.
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 1 May 2001 02:33:55 +0000 (02:33 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 1 May 2001 02:33:55 +0000 (02:33 +0000)
src/interfaces/ecpg/preproc/preproc.y

index 13f67a3692dec08274ada2c334fe4f21d6461b23..345efb6576e2ddd8ff944993799a816b12bd34c8 100644 (file)
@@ -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"); }   
                ;