Skip to content
Snippets Groups Projects
Commit 3cb1ffa6 authored by Tom Lane's avatar Tom Lane
Browse files

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.
parent 4359ebed
Branches
Tags
No related merge requests found
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/parser/gram.y,v 2.473 2004/08/22 00:08:28 tgl Exp $ * $PostgreSQL: pgsql/src/backend/parser/gram.y,v 2.474 2004/08/24 20:41:40 tgl Exp $
* *
* HISTORY * HISTORY
* AUTHOR DATE MAJOR EVENT * AUTHOR DATE MAJOR EVENT
...@@ -3231,7 +3231,7 @@ index_params: index_elem { $$ = list_make1($1); } ...@@ -3231,7 +3231,7 @@ index_params: index_elem { $$ = list_make1($1); }
* expressions in parens. For backwards-compatibility reasons, we allow * expressions in parens. For backwards-compatibility reasons, we allow
* an expression that's just a function call to be written without parens. * an expression that's just a function call to be written without parens.
*/ */
index_elem: attr_name opt_class index_elem: ColId opt_class
{ {
$$ = makeNode(IndexElem); $$ = makeNode(IndexElem);
$$->name = $1; $$->name = $1;
...@@ -7464,7 +7464,7 @@ database_name: ...@@ -7464,7 +7464,7 @@ database_name:
access_method: access_method:
ColId { $$ = $1; }; ColId { $$ = $1; };
attr_name: ColId { $$ = $1; }; attr_name: ColLabel { $$ = $1; };
index_name: ColId { $$ = $1; }; index_name: ColId { $$ = $1; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment