mirror of
https://github.com/postgres/postgres.git
synced 2025-06-06 00:02:36 -04:00
Add ANALYSE spelling of ANALYZE for vacuum.
This commit is contained in:
parent
9c0eacb434
commit
ebe0b23690
@ -11,7 +11,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.206 2000/11/06 15:47:17 thomas Exp $
|
* $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.207 2000/11/08 21:28:06 momjian Exp $
|
||||||
*
|
*
|
||||||
* HISTORY
|
* HISTORY
|
||||||
* AUTHOR DATE MAJOR EVENT
|
* AUTHOR DATE MAJOR EVENT
|
||||||
@ -334,7 +334,7 @@ static void doNegateFloat(Value *v);
|
|||||||
* when some sort of pg_privileges relation is introduced.
|
* when some sort of pg_privileges relation is introduced.
|
||||||
* - Todd A. Brandys 1998-01-01?
|
* - Todd A. Brandys 1998-01-01?
|
||||||
*/
|
*/
|
||||||
%token ABORT_TRANS, ACCESS, AFTER, AGGREGATE, ANALYZE,
|
%token ABORT_TRANS, ACCESS, AFTER, AGGREGATE, ANALYZE, ANALYSE /* British */
|
||||||
BACKWARD, BEFORE, BINARY, BIT,
|
BACKWARD, BEFORE, BINARY, BIT,
|
||||||
CACHE, CHECKPOINT, CLUSTER, COMMENT, COPY, CREATEDB, CREATEUSER, CYCLE,
|
CACHE, CHECKPOINT, CLUSTER, COMMENT, COPY, CREATEDB, CREATEUSER, CYCLE,
|
||||||
DATABASE, DELIMITERS, DO,
|
DATABASE, DELIMITERS, DO,
|
||||||
@ -3058,6 +3058,7 @@ opt_verbose: VERBOSE { $$ = TRUE; }
|
|||||||
;
|
;
|
||||||
|
|
||||||
opt_analyze: ANALYZE { $$ = TRUE; }
|
opt_analyze: ANALYZE { $$ = TRUE; }
|
||||||
|
| ANALYSE /* British */ { $$ = TRUE; }
|
||||||
| /*EMPTY*/ { $$ = FALSE; }
|
| /*EMPTY*/ { $$ = FALSE; }
|
||||||
;
|
;
|
||||||
|
|
||||||
@ -5535,6 +5536,7 @@ TokenId: ABSOLUTE { $$ = "absolute"; }
|
|||||||
ColLabel: ColId { $$ = $1; }
|
ColLabel: ColId { $$ = $1; }
|
||||||
| ABORT_TRANS { $$ = "abort"; }
|
| ABORT_TRANS { $$ = "abort"; }
|
||||||
| ALL { $$ = "all"; }
|
| ALL { $$ = "all"; }
|
||||||
|
| ANALYSE { $$ = "analyse"; } /* British */
|
||||||
| ANALYZE { $$ = "analyze"; }
|
| ANALYZE { $$ = "analyze"; }
|
||||||
| ANY { $$ = "any"; }
|
| ANY { $$ = "any"; }
|
||||||
| ASC { $$ = "asc"; }
|
| ASC { $$ = "asc"; }
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/backend/parser/keywords.c,v 1.83 2000/11/06 15:47:17 thomas Exp $
|
* $Header: /cvsroot/pgsql/src/backend/parser/keywords.c,v 1.84 2000/11/08 21:28:06 momjian Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -38,6 +38,7 @@ static ScanKeyword ScanKeywords[] = {
|
|||||||
{"aggregate", AGGREGATE},
|
{"aggregate", AGGREGATE},
|
||||||
{"all", ALL},
|
{"all", ALL},
|
||||||
{"alter", ALTER},
|
{"alter", ALTER},
|
||||||
|
{"analyse", ANALYSE}, /* British spelling */
|
||||||
{"analyze", ANALYZE},
|
{"analyze", ANALYZE},
|
||||||
{"and", AND},
|
{"and", AND},
|
||||||
{"any", ANY},
|
{"any", ANY},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user