11
11
*
12
12
*
13
13
* IDENTIFICATION
14
- * $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.182 2000/08/06 18:05:21 thomas Exp $
14
+ * $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.183 2000/08/07 06:54:51 thomas Exp $
15
15
*
16
16
* HISTORY
17
17
* AUTHORDATEMAJOR EVENT
@@ -5539,6 +5539,10 @@ UserId: ColId{ $$ = $1; };
5539
5539
* allowed as identifiers, but are acceptable as ColLabels:
5540
5540
* BETWEEN, IN, IS, ISNULL, NOTNULL, OVERLAPS
5541
5541
* Thanks to Tom Lane for pointing this out. - thomas 2000-03-29
5542
+ * Allow LIKE and ILIKE as TokenId (and ColId) to make sure that they
5543
+ * are allowed in the func_name production. Otherwise, we can't define
5544
+ * more like() and ilike() functions for new data types.
5545
+ * - thomas 2000-08-07
5542
5546
*/
5543
5547
ColId :generic {$$ =$1 ; }
5544
5548
| datetime {$$ =$1 ; }
@@ -5597,6 +5601,7 @@ TokenId: ABSOLUTE{ $$ = "absolute"; }
5597
5601
| FUNCTION {$$ =" function" ; }
5598
5602
| GRANT {$$ =" grant" ; }
5599
5603
| HANDLER {$$ =" handler" ; }
5604
+ | ILIKE {$$ =" ilike" ; }
5600
5605
| IMMEDIATE {$$ =" immediate" ; }
5601
5606
| INCREMENT {$$ =" increment" ; }
5602
5607
| INDEX {$$ =" index" ; }
@@ -5609,6 +5614,7 @@ TokenId: ABSOLUTE{ $$ = "absolute"; }
5609
5614
| LANGUAGE {$$ =" language" ; }
5610
5615
| LANCOMPILER {$$ =" lancompiler" ; }
5611
5616
| LEVEL {$$ =" level" ; }
5617
+ | LIKE {$$ =" like" ; }
5612
5618
| LOCATION {$$ =" location" ; }
5613
5619
| MATCH {$$ =" match" ; }
5614
5620
| MAXVALUE {$$ =" maxvalue" ; }
@@ -5735,7 +5741,6 @@ ColLabel: ColId{ $$ = $1; }
5735
5741
| GLOBAL {$$ =" global" ; }
5736
5742
| GROUP {$$ =" group" ; }
5737
5743
| HAVING {$$ =" having" ; }
5738
- | ILIKE {$$ =" ilike" ; }
5739
5744
| INITIALLY {$$ =" initially" ; }
5740
5745
| IN {$$ =" in" ; }
5741
5746
| INNER_P {$$ =" inner" ; }
@@ -5747,7 +5752,6 @@ ColLabel: ColId{ $$ = $1; }
5747
5752
| JOIN {$$ =" join" ; }
5748
5753
| LEADING {$$ =" leading" ; }
5749
5754
| LEFT {$$ =" left" ; }
5750
- | LIKE {$$ =" like" ; }
5751
5755
| LISTEN {$$ =" listen" ; }
5752
5756
| LOAD {$$ =" load" ; }
5753
5757
| LOCAL {$$ =" local" ; }