Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 215b90d

Browse files
committed
Allow extract() to accept the same field selectors as date_part(), not just
the ones specified by SQL.
1 parent c3b00e7 commit 215b90d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/backend/parser/gram.y

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
*
1212
*
1313
* IDENTIFICATION
14-
* $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.220 2001/02/09 03:26:28 tgl Exp $
14+
* $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.221 2001/02/18 18:06:10 petere Exp $
1515
*
1616
* HISTORY
1717
* AUTHOR DATE MAJOR EVENT
@@ -4987,6 +4987,7 @@ extract_list: extract_arg FROM a_expr
49874987
;
49884988

49894989
extract_arg: datetime { $$ = $1; }
4990+
| IDENT { $$ = $1; }
49904991
| TIMEZONE_HOUR { $$ = "tz_hour"; }
49914992
| TIMEZONE_MINUTE { $$ = "tz_minute"; }
49924993
;

0 commit comments

Comments
 (0)