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

Commit3cb1ffa

Browse files
committed
Allow second and subsequent names in a qualified (dotted) name to be
ColLabel instead of just ColId --- that is, any keyword can appear aftera dot and it will be taken as an identifier. Fixes problems with namesthat are okay as standalone function names but fail when qualified.
1 parent4359ebe commit3cb1ffa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎src/backend/parser/gram.y

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
*
1212
*
1313
* IDENTIFICATION
14-
* $PostgreSQL: pgsql/src/backend/parser/gram.y,v 2.473 2004/08/22 00:08:28 tgl Exp $
14+
* $PostgreSQL: pgsql/src/backend/parser/gram.y,v 2.474 2004/08/24 20:41:40 tgl Exp $
1515
*
1616
* HISTORY
1717
* AUTHORDATEMAJOR EVENT
@@ -3231,7 +3231,7 @@ index_params:index_elem{ $$ = list_make1($1); }
32313231
* expressions in parens. For backwards-compatibility reasons, we allow
32323232
* an expression that's just a function call to be written without parens.
32333233
*/
3234-
index_elem:attr_name opt_class
3234+
index_elem:ColId opt_class
32353235
{
32363236
$$ = makeNode(IndexElem);
32373237
$$->name =$1;
@@ -7464,7 +7464,7 @@ database_name:
74647464
access_method:
74657465
ColId{ $$ = $1; };
74667466

7467-
attr_name:ColId{ $$ = $1; };
7467+
attr_name:ColLabel{ $$ = $1; };
74687468

74697469
index_name: ColId{ $$ = $1; };
74707470

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp