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

Commit7f6e021

Browse files
author
Thomas G. Lockhart
committed
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.
1 parent12e1c9e commit7f6e021

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

‎src/backend/parser/gram.y

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
*
1212
*
1313
* 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 $
1515
*
1616
* HISTORY
1717
* AUTHORDATEMAJOR EVENT
@@ -5539,6 +5539,10 @@ UserId: ColId{ $$ = $1; };
55395539
* allowed as identifiers, but are acceptable as ColLabels:
55405540
* BETWEEN, IN, IS, ISNULL, NOTNULL, OVERLAPS
55415541
* 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
55425546
*/
55435547
ColId:generic{$$ =$1; }
55445548
|datetime{$$ =$1; }
@@ -5597,6 +5601,7 @@ TokenId: ABSOLUTE{ $$ = "absolute"; }
55975601
|FUNCTION{$$ ="function"; }
55985602
|GRANT{$$ ="grant"; }
55995603
|HANDLER{$$ ="handler"; }
5604+
|ILIKE{$$ ="ilike"; }
56005605
|IMMEDIATE{$$ ="immediate"; }
56015606
|INCREMENT{$$ ="increment"; }
56025607
|INDEX{$$ ="index"; }
@@ -5609,6 +5614,7 @@ TokenId: ABSOLUTE{ $$ = "absolute"; }
56095614
|LANGUAGE{$$ ="language"; }
56105615
|LANCOMPILER{$$ ="lancompiler"; }
56115616
|LEVEL{$$ ="level"; }
5617+
|LIKE{$$ ="like"; }
56125618
|LOCATION{$$ ="location"; }
56135619
|MATCH{$$ ="match"; }
56145620
|MAXVALUE{$$ ="maxvalue"; }
@@ -5735,7 +5741,6 @@ ColLabel: ColId{ $$ = $1; }
57355741
|GLOBAL{$$ ="global"; }
57365742
|GROUP{$$ ="group"; }
57375743
|HAVING{$$ ="having"; }
5738-
|ILIKE{$$ ="ilike"; }
57395744
|INITIALLY{$$ ="initially"; }
57405745
|IN{$$ ="in"; }
57415746
|INNER_P{$$ ="inner"; }
@@ -5747,7 +5752,6 @@ ColLabel: ColId{ $$ = $1; }
57475752
|JOIN{$$ ="join"; }
57485753
|LEADING{$$ ="leading"; }
57495754
|LEFT{$$ ="left"; }
5750-
|LIKE{$$ ="like"; }
57515755
|LISTEN{$$ ="listen"; }
57525756
|LOAD{$$ ="load"; }
57535757
|LOCAL{$$ ="local"; }

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp