aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas G. Lockhart <lockhart@fourpalms.org>2000-08-07 06:54:51 +0000
committerThomas G. Lockhart <lockhart@fourpalms.org>2000-08-07 06:54:51 +0000
commit7f6e021ca8eb92cd58f682561804738985d0ecd9 (patch)
tree8b454f1ea5c3351dfb76a6a733264967a40b538f /src
parent12e1c9efad7dc59a285f801fdff7204af1f7de43 (diff)
downloadpostgresql-7f6e021ca8eb92cd58f682561804738985d0ecd9.tar.gz
postgresql-7f6e021ca8eb92cd58f682561804738985d0ecd9.zip
Allow LIKE and ILIKE as TokenId (and hence ColId) to make sure that they
are allowed in the func_name production. Otherwise, we can't define more like() and ilike() functions for new data types.
Diffstat (limited to 'src')
-rw-r--r--src/backend/parser/gram.y10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/backend/parser/gram.y b/src/backend/parser/gram.y
index 89bda3d82df..0d2461f50d4 100644
--- a/src/backend/parser/gram.y
+++ b/src/backend/parser/gram.y
@@ -11,7 +11,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.182 2000/08/06 18:05:21 thomas Exp $
+ * $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.183 2000/08/07 06:54:51 thomas Exp $
*
* HISTORY
* AUTHOR DATE MAJOR EVENT
@@ -5539,6 +5539,10 @@ UserId: ColId { $$ = $1; };
* allowed as identifiers, but are acceptable as ColLabels:
* BETWEEN, IN, IS, ISNULL, NOTNULL, OVERLAPS
* Thanks to Tom Lane for pointing this out. - thomas 2000-03-29
+ * Allow LIKE and ILIKE as TokenId (and ColId) to make sure that they
+ * are allowed in the func_name production. Otherwise, we can't define
+ * more like() and ilike() functions for new data types.
+ * - thomas 2000-08-07
*/
ColId: generic { $$ = $1; }
| datetime { $$ = $1; }
@@ -5597,6 +5601,7 @@ TokenId: ABSOLUTE { $$ = "absolute"; }
| FUNCTION { $$ = "function"; }
| GRANT { $$ = "grant"; }
| HANDLER { $$ = "handler"; }
+ | ILIKE { $$ = "ilike"; }
| IMMEDIATE { $$ = "immediate"; }
| INCREMENT { $$ = "increment"; }
| INDEX { $$ = "index"; }
@@ -5609,6 +5614,7 @@ TokenId: ABSOLUTE { $$ = "absolute"; }
| LANGUAGE { $$ = "language"; }
| LANCOMPILER { $$ = "lancompiler"; }
| LEVEL { $$ = "level"; }
+ | LIKE { $$ = "like"; }
| LOCATION { $$ = "location"; }
| MATCH { $$ = "match"; }
| MAXVALUE { $$ = "maxvalue"; }
@@ -5735,7 +5741,6 @@ ColLabel: ColId { $$ = $1; }
| GLOBAL { $$ = "global"; }
| GROUP { $$ = "group"; }
| HAVING { $$ = "having"; }
- | ILIKE { $$ = "ilike"; }
| INITIALLY { $$ = "initially"; }
| IN { $$ = "in"; }
| INNER_P { $$ = "inner"; }
@@ -5747,7 +5752,6 @@ ColLabel: ColId { $$ = $1; }
| JOIN { $$ = "join"; }
| LEADING { $$ = "leading"; }
| LEFT { $$ = "left"; }
- | LIKE { $$ = "like"; }
| LISTEN { $$ = "listen"; }
| LOAD { $$ = "load"; }
| LOCAL { $$ = "local"; }