Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit215b90d

Browse files
committed
Allow extract() to accept the same field selectors as date_part(), not just
the ones specified by SQL.
1 parentc3b00e7 commit215b90d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎src/backend/parser/gram.y

Lines changed: 2 additions & 1 deletion
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
* AUTHORDATEMAJOR 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)

[8]ページ先頭

©2009-2025 Movatter.jp