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

Commitebe0b23

Browse files
committed
Add ANALYSE spelling of ANALYZE for vacuum.
1 parent9c0eacb commitebe0b23

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

‎src/backend/parser/gram.y

Lines changed: 4 additions & 2 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.206 2000/11/06 15:47:17 thomas Exp $
14+
* $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.207 2000/11/08 21:28:06 momjian Exp $
1515
*
1616
* HISTORY
1717
* AUTHORDATEMAJOR EVENT
@@ -334,7 +334,7 @@ static void doNegateFloat(Value *v);
334334
* when some sort of pg_privileges relation is introduced.
335335
* - Todd A. Brandys 1998-01-01?
336336
*/
337-
%tokenABORT_TRANS,ACCESS,AFTER,AGGREGATE,ANALYZE,
337+
%tokenABORT_TRANS,ACCESS,AFTER,AGGREGATE,ANALYZE,ANALYSE/* British*/
338338
BACKWARD,BEFORE,BINARY,BIT,
339339
CACHE,CHECKPOINT,CLUSTER,COMMENT,COPY,CREATEDB,CREATEUSER,CYCLE,
340340
DATABASE,DELIMITERS,DO,
@@ -3058,6 +3058,7 @@ opt_verbose: VERBOSE{ $$ = TRUE; }
30583058
;
30593059

30603060
opt_analyze:ANALYZE{$$ =TRUE; }
3061+
|ANALYSE/* British*/{$$ =TRUE; }
30613062
|/*EMPTY*/{$$ =FALSE; }
30623063
;
30633064

@@ -5535,6 +5536,7 @@ TokenId: ABSOLUTE{ $$ = "absolute"; }
55355536
ColLabel:ColId{$$ =$1; }
55365537
|ABORT_TRANS{$$ ="abort"; }
55375538
|ALL{$$ ="all"; }
5539+
|ANALYSE{$$ ="analyse"; }/* British*/
55385540
|ANALYZE{$$ ="analyze"; }
55395541
|ANY{$$ ="any"; }
55405542
|ASC{$$ ="asc"; }

‎src/backend/parser/keywords.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/parser/keywords.c,v 1.83 2000/11/06 15:47:17 thomas Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/parser/keywords.c,v 1.84 2000/11/08 21:28:06 momjian Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -38,6 +38,7 @@ static ScanKeyword ScanKeywords[] = {
3838
{"aggregate",AGGREGATE},
3939
{"all",ALL},
4040
{"alter",ALTER},
41+
{"analyse",ANALYSE},/* British spelling */
4142
{"analyze",ANALYZE},
4243
{"and",AND},
4344
{"any",ANY},

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp