Skip to content

Commit 3cb1ffa

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 after a dot and it will be taken as an identifier. Fixes problems with names that are okay as standalone function names but fail when qualified.
1 parent 4359ebe commit 3cb1ffa

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
* AUTHOR DATE MAJOR 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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy