/* A Bison parser, made by GNU Bison 1.875.  */

/* Skeleton parser for Yacc-like parsing with Bison,
   Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002 Free Software Foundation, Inc.

   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation; either version 2, or (at your option)
   any later version.

   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.

   You should have received a copy of the GNU General Public License
   along with this program; if not, write to the Free Software
   Foundation, Inc., 59 Temple Place - Suite 330,
   Boston, MA 02111-1307, USA.  */

/* As a special exception, when this file is copied by Bison into a
   Bison output file, you may use that output file without restriction.
   This special exception was added by the Free Software Foundation
   in version 1.24 of Bison.  */

/* Tokens.  */
#ifndef YYTOKENTYPE
# define YYTOKENTYPE
   /* Put the tokens into the symbol table, so that GDB and other debuggers
      know about them.  */
   enum yytokentype {
     ABORT_P = 258,
     ABSOLUTE = 259,
     ACCESS = 260,
     ACTION = 261,
     ADD = 262,
     AFTER = 263,
     AGGREGATE = 264,
     ALL = 265,
     ALTER = 266,
     ANALYSE = 267,
     ANALYZE = 268,
     AND = 269,
     ANY = 270,
     ARRAY = 271,
     AS = 272,
     ASC = 273,
     ASSERTION = 274,
     ASSIGNMENT = 275,
     AT = 276,
     AUTHORIZATION = 277,
     BACKWARD = 278,
     BEFORE = 279,
     BEGIN_P = 280,
     BETWEEN = 281,
     BIGINT = 282,
     BINARY = 283,
     BIT = 284,
     BOOLEAN = 285,
     BOTH = 286,
     BY = 287,
     CACHE = 288,
     CALLED = 289,
     CASCADE = 290,
     CASE = 291,
     CAST = 292,
     CHAIN = 293,
     CHAR_P = 294,
     CHARACTER = 295,
     CHARACTERISTICS = 296,
     CHECK = 297,
     CHECKPOINT = 298,
     CLASS = 299,
     CLOSE = 300,
     CLUSTER = 301,
     COALESCE = 302,
     COLLATE = 303,
     COLUMN = 304,
     COMMENT = 305,
     COMMIT = 306,
     COMMITTED = 307,
     CONSTRAINT = 308,
     CONSTRAINTS = 309,
     CONVERSION_P = 310,
     CONVERT = 311,
     COPY = 312,
     CREATE = 313,
     CREATEDB = 314,
     CREATEUSER = 315,
     CROSS = 316,
     CURRENT_DATE = 317,
     CURRENT_TIME = 318,
     CURRENT_TIMESTAMP = 319,
     CURRENT_USER = 320,
     CURSOR = 321,
     CYCLE = 322,
     DATABASE = 323,
     DAY_P = 324,
     DEALLOCATE = 325,
     DEC = 326,
     DECIMAL = 327,
     DECLARE = 328,
     DEFAULT = 329,
     DEFERRABLE = 330,
     DEFERRED = 331,
     DEFINER = 332,
     DELETE_P = 333,
     DELIMITER = 334,
     DELIMITERS = 335,
     DESC = 336,
     DISTINCT = 337,
     DO = 338,
     DOMAIN_P = 339,
     DOUBLE = 340,
     DROP = 341,
     EACH = 342,
     ELSE = 343,
     ENCODING = 344,
     ENCRYPTED = 345,
     END_P = 346,
     ESCAPE = 347,
     EXCEPT = 348,
     EXCLUSIVE = 349,
     EXECUTE = 350,
     EXISTS = 351,
     EXPLAIN = 352,
     EXTERNAL = 353,
     EXTRACT = 354,
     FALSE_P = 355,
     FETCH = 356,
     FIRST_P = 357,
     FLOAT_P = 358,
     FOR = 359,
     FORCE = 360,
     FOREIGN = 361,
     FORWARD = 362,
     FREEZE = 363,
     FROM = 364,
     FULL = 365,
     FUNCTION = 366,
     GLOBAL = 367,
     GRANT = 368,
     GROUP_P = 369,
     HANDLER = 370,
     HAVING = 371,
     HOLD = 372,
     HOUR_P = 373,
     ILIKE = 374,
     IMMEDIATE = 375,
     IMMUTABLE = 376,
     IMPLICIT_P = 377,
     IN_P = 378,
     INCREMENT = 379,
     INDEX = 380,
     INHERITS = 381,
     INITIALLY = 382,
     INNER_P = 383,
     INOUT = 384,
     INPUT = 385,
     INSENSITIVE = 386,
     INSERT = 387,
     INSTEAD = 388,
     INT = 389,
     INTEGER = 390,
     INTERSECT = 391,
     INTERVAL = 392,
     INTO = 393,
     INVOKER = 394,
     IS = 395,
     ISNULL = 396,
     ISOLATION = 397,
     JOIN = 398,
     KEY = 399,
     LANCOMPILER = 400,
     LANGUAGE = 401,
     LAST_P = 402,
     LEADING = 403,
     LEFT = 404,
     LEVEL = 405,
     LIKE = 406,
     LIMIT = 407,
     LISTEN = 408,
     LOAD = 409,
     LOCAL = 410,
     LOCALTIME = 411,
     LOCALTIMESTAMP = 412,
     LOCATION = 413,
     LOCK_P = 414,
     MATCH = 415,
     MAXVALUE = 416,
     MINUTE_P = 417,
     MINVALUE = 418,
     MODE = 419,
     MONTH_P = 420,
     MOVE = 421,
     NAMES = 422,
     NATIONAL = 423,
     NATURAL = 424,
     NCHAR = 425,
     NEW = 426,
     NEXT = 427,
     NO = 428,
     NOCREATEDB = 429,
     NOCREATEUSER = 430,
     NONE = 431,
     NOT = 432,
     NOTHING = 433,
     NOTIFY = 434,
     NOTNULL = 435,
     NULL_P = 436,
     NULLIF = 437,
     NUMERIC = 438,
     OF = 439,
     OFF = 440,
     OFFSET = 441,
     OIDS = 442,
     OLD = 443,
     ON = 444,
     ONLY = 445,
     OPERATOR = 446,
     OPTION = 447,
     OR = 448,
     ORDER = 449,
     OUT_P = 450,
     OUTER_P = 451,
     OVERLAPS = 452,
     OVERLAY = 453,
     OWNER = 454,
     PARTIAL = 455,
     PASSWORD = 456,
     PATH_P = 457,
     PENDANT = 458,
     PLACING = 459,
     POSITION = 460,
     PRECISION = 461,
     PRESERVE = 462,
     PREPARE = 463,
     PRIMARY = 464,
     PRIOR = 465,
     PRIVILEGES = 466,
     PROCEDURAL = 467,
     PROCEDURE = 468,
     READ = 469,
     REAL = 470,
     RECHECK = 471,
     REFERENCES = 472,
     REINDEX = 473,
     RELATIVE = 474,
     RENAME = 475,
     REPLACE = 476,
     RESET = 477,
     RESTART = 478,
     RESTRICT = 479,
     RETURNS = 480,
     REVOKE = 481,
     RIGHT = 482,
     ROLLBACK = 483,
     ROW = 484,
     ROWS = 485,
     RULE = 486,
     SCHEMA = 487,
     SCROLL = 488,
     SECOND_P = 489,
     SECURITY = 490,
     SELECT = 491,
     SEQUENCE = 492,
     SERIALIZABLE = 493,
     SESSION = 494,
     SESSION_USER = 495,
     SET = 496,
     SETOF = 497,
     SHARE = 498,
     SHOW = 499,
     SIMILAR = 500,
     SIMPLE = 501,
     SMALLINT = 502,
     SOME = 503,
     STABLE = 504,
     START = 505,
     STATEMENT = 506,
     STATISTICS = 507,
     STDIN = 508,
     STDOUT = 509,
     STORAGE = 510,
     STRICT = 511,
     SUBSTRING = 512,
     SYSID = 513,
     TABLE = 514,
     TEMP = 515,
     TEMPLATE = 516,
     TEMPORARY = 517,
     THEN = 518,
     TIME = 519,
     TIMESTAMP = 520,
     TO = 521,
     TOAST = 522,
     TRAILING = 523,
     TRANSACTION = 524,
     TREAT = 525,
     TRIGGER = 526,
     TRIM = 527,
     TRUE_P = 528,
     TRUNCATE = 529,
     TRUSTED = 530,
     TYPE_P = 531,
     UNENCRYPTED = 532,
     UNION = 533,
     UNIQUE = 534,
     UNKNOWN = 535,
     UNLISTEN = 536,
     UNTIL = 537,
     UPDATE = 538,
     USAGE = 539,
     USER = 540,
     USING = 541,
     VACUUM = 542,
     VALID = 543,
     VALIDATOR = 544,
     VALUES = 545,
     VARCHAR = 546,
     VARYING = 547,
     VERBOSE = 548,
     VERSION = 549,
     VIEW = 550,
     VOLATILE = 551,
     WHEN = 552,
     WHERE = 553,
     WITH = 554,
     WITHOUT = 555,
     WORK = 556,
     WRITE = 557,
     YEAR_P = 558,
     ZONE = 559,
     UNIONJOIN = 560,
     IDENT = 561,
     FCONST = 562,
     SCONST = 563,
     NCONST = 564,
     BCONST = 565,
     XCONST = 566,
     Op = 567,
     ICONST = 568,
     PARAM = 569,
     POSTFIXOP = 570,
     UMINUS = 571,
     TYPECAST = 572
   };
#endif
#define ABORT_P 258
#define ABSOLUTE 259
#define ACCESS 260
#define ACTION 261
#define ADD 262
#define AFTER 263
#define AGGREGATE 264
#define ALL 265
#define ALTER 266
#define ANALYSE 267
#define ANALYZE 268
#define AND 269
#define ANY 270
#define ARRAY 271
#define AS 272
#define ASC 273
#define ASSERTION 274
#define ASSIGNMENT 275
#define AT 276
#define AUTHORIZATION 277
#define BACKWARD 278
#define BEFORE 279
#define BEGIN_P 280
#define BETWEEN 281
#define BIGINT 282
#define BINARY 283
#define BIT 284
#define BOOLEAN 285
#define BOTH 286
#define BY 287
#define CACHE 288
#define CALLED 289
#define CASCADE 290
#define CASE 291
#define CAST 292
#define CHAIN 293
#define CHAR_P 294
#define CHARACTER 295
#define CHARACTERISTICS 296
#define CHECK 297
#define CHECKPOINT 298
#define CLASS 299
#define CLOSE 300
#define CLUSTER 301
#define COALESCE 302
#define COLLATE 303
#define COLUMN 304
#define COMMENT 305
#define COMMIT 306
#define COMMITTED 307
#define CONSTRAINT 308
#define CONSTRAINTS 309
#define CONVERSION_P 310
#define CONVERT 311
#define COPY 312
#define CREATE 313
#define CREATEDB 314
#define CREATEUSER 315
#define CROSS 316
#define CURRENT_DATE 317
#define CURRENT_TIME 318
#define CURRENT_TIMESTAMP 319
#define CURRENT_USER 320
#define CURSOR 321
#define CYCLE 322
#define DATABASE 323
#define DAY_P 324
#define DEALLOCATE 325
#define DEC 326
#define DECIMAL 327
#define DECLARE 328
#define DEFAULT 329
#define DEFERRABLE 330
#define DEFERRED 331
#define DEFINER 332
#define DELETE_P 333
#define DELIMITER 334
#define DELIMITERS 335
#define DESC 336
#define DISTINCT 337
#define DO 338
#define DOMAIN_P 339
#define DOUBLE 340
#define DROP 341
#define EACH 342
#define ELSE 343
#define ENCODING 344
#define ENCRYPTED 345
#define END_P 346
#define ESCAPE 347
#define EXCEPT 348
#define EXCLUSIVE 349
#define EXECUTE 350
#define EXISTS 351
#define EXPLAIN 352
#define EXTERNAL 353
#define EXTRACT 354
#define FALSE_P 355
#define FETCH 356
#define FIRST_P 357
#define FLOAT_P 358
#define FOR 359
#define FORCE 360
#define FOREIGN 361
#define FORWARD 362
#define FREEZE 363
#define FROM 364
#define FULL 365
#define FUNCTION 366
#define GLOBAL 367
#define GRANT 368
#define GROUP_P 369
#define HANDLER 370
#define HAVING 371
#define HOLD 372
#define HOUR_P 373
#define ILIKE 374
#define IMMEDIATE 375
#define IMMUTABLE 376
#define IMPLICIT_P 377
#define IN_P 378
#define INCREMENT 379
#define INDEX 380
#define INHERITS 381
#define INITIALLY 382
#define INNER_P 383
#define INOUT 384
#define INPUT 385
#define INSENSITIVE 386
#define INSERT 387
#define INSTEAD 388
#define INT 389
#define INTEGER 390
#define INTERSECT 391
#define INTERVAL 392
#define INTO 393
#define INVOKER 394
#define IS 395
#define ISNULL 396
#define ISOLATION 397
#define JOIN 398
#define KEY 399
#define LANCOMPILER 400
#define LANGUAGE 401
#define LAST_P 402
#define LEADING 403
#define LEFT 404
#define LEVEL 405
#define LIKE 406
#define LIMIT 407
#define LISTEN 408
#define LOAD 409
#define LOCAL 410
#define LOCALTIME 411
#define LOCALTIMESTAMP 412
#define LOCATION 413
#define LOCK_P 414
#define MATCH 415
#define MAXVALUE 416
#define MINUTE_P 417
#define MINVALUE 418
#define MODE 419
#define MONTH_P 420
#define MOVE 421
#define NAMES 422
#define NATIONAL 423
#define NATURAL 424
#define NCHAR 425
#define NEW 426
#define NEXT 427
#define NO 428
#define NOCREATEDB 429
#define NOCREATEUSER 430
#define NONE 431
#define NOT 432
#define NOTHING 433
#define NOTIFY 434
#define NOTNULL 435
#define NULL_P 436
#define NULLIF 437
#define NUMERIC 438
#define OF 439
#define OFF 440
#define OFFSET 441
#define OIDS 442
#define OLD 443
#define ON 444
#define ONLY 445
#define OPERATOR 446
#define OPTION 447
#define OR 448
#define ORDER 449
#define OUT_P 450
#define OUTER_P 451
#define OVERLAPS 452
#define OVERLAY 453
#define OWNER 454
#define PARTIAL 455
#define PASSWORD 456
#define PATH_P 457
#define PENDANT 458
#define PLACING 459
#define POSITION 460
#define PRECISION 461
#define PRESERVE 462
#define PREPARE 463
#define PRIMARY 464
#define PRIOR 465
#define PRIVILEGES 466
#define PROCEDURAL 467
#define PROCEDURE 468
#define READ 469
#define REAL 470
#define RECHECK 471
#define REFERENCES 472
#define REINDEX 473
#define RELATIVE 474
#define RENAME 475
#define REPLACE 476
#define RESET 477
#define RESTART 478
#define RESTRICT 479
#define RETURNS 480
#define REVOKE 481
#define RIGHT 482
#define ROLLBACK 483
#define ROW 484
#define ROWS 485
#define RULE 486
#define SCHEMA 487
#define SCROLL 488
#define SECOND_P 489
#define SECURITY 490
#define SELECT 491
#define SEQUENCE 492
#define SERIALIZABLE 493
#define SESSION 494
#define SESSION_USER 495
#define SET 496
#define SETOF 497
#define SHARE 498
#define SHOW 499
#define SIMILAR 500
#define SIMPLE 501
#define SMALLINT 502
#define SOME 503
#define STABLE 504
#define START 505
#define STATEMENT 506
#define STATISTICS 507
#define STDIN 508
#define STDOUT 509
#define STORAGE 510
#define STRICT 511
#define SUBSTRING 512
#define SYSID 513
#define TABLE 514
#define TEMP 515
#define TEMPLATE 516
#define TEMPORARY 517
#define THEN 518
#define TIME 519
#define TIMESTAMP 520
#define TO 521
#define TOAST 522
#define TRAILING 523
#define TRANSACTION 524
#define TREAT 525
#define TRIGGER 526
#define TRIM 527
#define TRUE_P 528
#define TRUNCATE 529
#define TRUSTED 530
#define TYPE_P 531
#define UNENCRYPTED 532
#define UNION 533
#define UNIQUE 534
#define UNKNOWN 535
#define UNLISTEN 536
#define UNTIL 537
#define UPDATE 538
#define USAGE 539
#define USER 540
#define USING 541
#define VACUUM 542
#define VALID 543
#define VALIDATOR 544
#define VALUES 545
#define VARCHAR 546
#define VARYING 547
#define VERBOSE 548
#define VERSION 549
#define VIEW 550
#define VOLATILE 551
#define WHEN 552
#define WHERE 553
#define WITH 554
#define WITHOUT 555
#define WORK 556
#define WRITE 557
#define YEAR_P 558
#define ZONE 559
#define UNIONJOIN 560
#define IDENT 561
#define FCONST 562
#define SCONST 563
#define NCONST 564
#define BCONST 565
#define XCONST 566
#define Op 567
#define ICONST 568
#define PARAM 569
#define POSTFIXOP 570
#define UMINUS 571
#define TYPECAST 572




#if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED)
#line 101 "gram.y"
typedef union YYSTYPE {
	int					ival;
	char				chr;
	char				*str;
	const char			*keyword;
	bool				boolean;
	JoinType			jtype;
	DropBehavior		dbehavior;
	OnCommitAction		oncommit;
	List				*list;
	Node				*node;
	Value				*value;
	ColumnRef			*columnref;

	TypeName			*typnam;
	DefElem				*defelt;
	SortGroupBy			*sortgroupby;
	JoinExpr			*jexpr;
	IndexElem			*ielem;
	Alias				*alias;
	RangeVar			*range;
	A_Indices			*aind;
	ResTarget			*target;
	PrivTarget			*privtarget;

	InsertStmt			*istmt;
	VariableSetStmt		*vsetstmt;
} YYSTYPE;
/* Line 1248 of yacc.c.  */
#line 699 "y.tab.h"
# define yystype YYSTYPE /* obsolescent; will be withdrawn */
# define YYSTYPE_IS_DECLARED 1
# define YYSTYPE_IS_TRIVIAL 1
#endif

extern YYSTYPE yylval;



