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

/* Bison interface for Yacc-like parsers in C
   
      Copyright (C) 1984, 1989-1990, 2000-2011 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 3 of the License, 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, see <http://www.gnu.org/licenses/>.  */

/* As a special exception, you may create a larger work that contains
   part or all of the Bison parser skeleton and distribute that work
   under terms of your choice, so long as that work isn't itself a
   parser generator using the skeleton or a modified version thereof
   as a parser skeleton.  Alternatively, if you modify or redistribute
   the parser skeleton itself, you may (at your option) remove this
   special exception, which will cause the skeleton and the resulting
   Bison output files to be licensed under the GNU General Public
   License without this special exception.
   
   This special exception was added by the Free Software Foundation in
   version 2.2 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 {
     SQL_ALLOCATE = 258,
     SQL_AUTOCOMMIT = 259,
     SQL_BOOL = 260,
     SQL_BREAK = 261,
     SQL_CALL = 262,
     SQL_CARDINALITY = 263,
     SQL_CONNECT = 264,
     SQL_COUNT = 265,
     SQL_DATETIME_INTERVAL_CODE = 266,
     SQL_DATETIME_INTERVAL_PRECISION = 267,
     SQL_DESCRIBE = 268,
     SQL_DESCRIPTOR = 269,
     SQL_DISCONNECT = 270,
     SQL_FOUND = 271,
     SQL_FREE = 272,
     SQL_GET = 273,
     SQL_GO = 274,
     SQL_GOTO = 275,
     SQL_IDENTIFIED = 276,
     SQL_INDICATOR = 277,
     SQL_KEY_MEMBER = 278,
     SQL_LENGTH = 279,
     SQL_LONG = 280,
     SQL_NULLABLE = 281,
     SQL_OCTET_LENGTH = 282,
     SQL_OPEN = 283,
     SQL_OUTPUT = 284,
     SQL_REFERENCE = 285,
     SQL_RETURNED_LENGTH = 286,
     SQL_RETURNED_OCTET_LENGTH = 287,
     SQL_SCALE = 288,
     SQL_SECTION = 289,
     SQL_SHORT = 290,
     SQL_SIGNED = 291,
     SQL_SQLERROR = 292,
     SQL_SQLPRINT = 293,
     SQL_SQLWARNING = 294,
     SQL_START = 295,
     SQL_STOP = 296,
     SQL_STRUCT = 297,
     SQL_UNSIGNED = 298,
     SQL_VAR = 299,
     SQL_WHENEVER = 300,
     S_ADD = 301,
     S_AND = 302,
     S_ANYTHING = 303,
     S_AUTO = 304,
     S_CONST = 305,
     S_DEC = 306,
     S_DIV = 307,
     S_DOTPOINT = 308,
     S_EQUAL = 309,
     S_EXTERN = 310,
     S_INC = 311,
     S_LSHIFT = 312,
     S_MEMPOINT = 313,
     S_MEMBER = 314,
     S_MOD = 315,
     S_MUL = 316,
     S_NEQUAL = 317,
     S_OR = 318,
     S_REGISTER = 319,
     S_RSHIFT = 320,
     S_STATIC = 321,
     S_SUB = 322,
     S_VOLATILE = 323,
     S_TYPEDEF = 324,
     CSTRING = 325,
     CVARIABLE = 326,
     CPP_LINE = 327,
     IP = 328,
     DOLCONST = 329,
     ECONST = 330,
     NCONST = 331,
     UCONST = 332,
     UIDENT = 333,
     IDENT = 334,
     FCONST = 335,
     SCONST = 336,
     BCONST = 337,
     XCONST = 338,
     Op = 339,
     ICONST = 340,
     PARAM = 341,
     TYPECAST = 342,
     DOT_DOT = 343,
     COLON_EQUALS = 344,
     EQUALS_GREATER = 345,
     LESS_EQUALS = 346,
     GREATER_EQUALS = 347,
     NOT_EQUALS = 348,
     ABORT_P = 349,
     ABSOLUTE_P = 350,
     ACCESS = 351,
     ACTION = 352,
     ADD_P = 353,
     ADMIN = 354,
     AFTER = 355,
     AGGREGATE = 356,
     ALL = 357,
     ALSO = 358,
     ALTER = 359,
     ALWAYS = 360,
     ANALYSE = 361,
     ANALYZE = 362,
     AND = 363,
     ANY = 364,
     ARRAY = 365,
     AS = 366,
     ASC = 367,
     ASSERTION = 368,
     ASSIGNMENT = 369,
     ASYMMETRIC = 370,
     AT = 371,
     ATTRIBUTE = 372,
     AUTHORIZATION = 373,
     BACKWARD = 374,
     BEFORE = 375,
     BEGIN_P = 376,
     BETWEEN = 377,
     BIGINT = 378,
     BINARY = 379,
     BIT = 380,
     BOOLEAN_P = 381,
     BOTH = 382,
     BY = 383,
     CACHE = 384,
     CALLED = 385,
     CASCADE = 386,
     CASCADED = 387,
     CASE = 388,
     CAST = 389,
     CATALOG_P = 390,
     CHAIN = 391,
     CHAR_P = 392,
     CHARACTER = 393,
     CHARACTERISTICS = 394,
     CHECK = 395,
     CHECKPOINT = 396,
     CLASS = 397,
     CLOSE = 398,
     CLUSTER = 399,
     COALESCE = 400,
     COLLATE = 401,
     COLLATION = 402,
     COLUMN = 403,
     COMMENT = 404,
     COMMENTS = 405,
     COMMIT = 406,
     COMMITTED = 407,
     CONCURRENTLY = 408,
     CONFIGURATION = 409,
     CONFLICT = 410,
     CONNECTION = 411,
     CONSTRAINT = 412,
     CONSTRAINTS = 413,
     CONTENT_P = 414,
     CONTINUE_P = 415,
     CONVERSION_P = 416,
     COPY = 417,
     COST = 418,
     CREATE = 419,
     CROSS = 420,
     CSV = 421,
     CUBE = 422,
     CURRENT_P = 423,
     CURRENT_CATALOG = 424,
     CURRENT_DATE = 425,
     CURRENT_ROLE = 426,
     CURRENT_SCHEMA = 427,
     CURRENT_TIME = 428,
     CURRENT_TIMESTAMP = 429,
     CURRENT_USER = 430,
     CURSOR = 431,
     CYCLE = 432,
     DATA_P = 433,
     DATABASE = 434,
     DAY_P = 435,
     DEALLOCATE = 436,
     DEC = 437,
     DECIMAL_P = 438,
     DECLARE = 439,
     DEFAULT = 440,
     DEFAULTS = 441,
     DEFERRABLE = 442,
     DEFERRED = 443,
     DEFINER = 444,
     DELETE_P = 445,
     DELIMITER = 446,
     DELIMITERS = 447,
     DESC = 448,
     DICTIONARY = 449,
     DISABLE_P = 450,
     DISCARD = 451,
     DISTINCT = 452,
     DO = 453,
     DOCUMENT_P = 454,
     DOMAIN_P = 455,
     DOUBLE_P = 456,
     DROP = 457,
     EACH = 458,
     ELSE = 459,
     ENABLE_P = 460,
     ENCODING = 461,
     ENCRYPTED = 462,
     END_P = 463,
     ENUM_P = 464,
     ESCAPE = 465,
     EVENT = 466,
     EXCEPT = 467,
     EXCLUDE = 468,
     EXCLUDING = 469,
     EXCLUSIVE = 470,
     EXECUTE = 471,
     EXISTS = 472,
     EXPLAIN = 473,
     EXTENSION = 474,
     EXTERNAL = 475,
     EXTRACT = 476,
     FALSE_P = 477,
     FAMILY = 478,
     FETCH = 479,
     FILTER = 480,
     FIRST_P = 481,
     FLOAT_P = 482,
     FOLLOWING = 483,
     FOR = 484,
     FORCE = 485,
     FOREIGN = 486,
     FORWARD = 487,
     FREEZE = 488,
     FROM = 489,
     FULL = 490,
     FUNCTION = 491,
     FUNCTIONS = 492,
     GLOBAL = 493,
     GRANT = 494,
     GRANTED = 495,
     GREATEST = 496,
     GROUP_P = 497,
     GROUPING = 498,
     HANDLER = 499,
     HAVING = 500,
     HEADER_P = 501,
     HOLD = 502,
     HOUR_P = 503,
     IDENTITY_P = 504,
     IF_P = 505,
     ILIKE = 506,
     IMMEDIATE = 507,
     IMMUTABLE = 508,
     IMPLICIT_P = 509,
     IMPORT_P = 510,
     IN_P = 511,
     INCLUDING = 512,
     INCREMENT = 513,
     INDEX = 514,
     INDEXES = 515,
     INHERIT = 516,
     INHERITS = 517,
     INITIALLY = 518,
     INLINE_P = 519,
     INNER_P = 520,
     INOUT = 521,
     INPUT_P = 522,
     INSENSITIVE = 523,
     INSERT = 524,
     INSTEAD = 525,
     INT_P = 526,
     INTEGER = 527,
     INTERSECT = 528,
     INTERVAL = 529,
     INTO = 530,
     INVOKER = 531,
     IS = 532,
     ISNULL = 533,
     ISOLATION = 534,
     JOIN = 535,
     KEY = 536,
     LABEL = 537,
     LANGUAGE = 538,
     LARGE_P = 539,
     LAST_P = 540,
     LATERAL_P = 541,
     LEADING = 542,
     LEAKPROOF = 543,
     LEAST = 544,
     LEFT = 545,
     LEVEL = 546,
     LIKE = 547,
     LIMIT = 548,
     LISTEN = 549,
     LOAD = 550,
     LOCAL = 551,
     LOCALTIME = 552,
     LOCALTIMESTAMP = 553,
     LOCATION = 554,
     LOCK_P = 555,
     LOCKED = 556,
     LOGGED = 557,
     MAPPING = 558,
     MATCH = 559,
     MATERIALIZED = 560,
     MAXVALUE = 561,
     MINUTE_P = 562,
     MINVALUE = 563,
     MODE = 564,
     MONTH_P = 565,
     MOVE = 566,
     NAME_P = 567,
     NAMES = 568,
     NATIONAL = 569,
     NATURAL = 570,
     NCHAR = 571,
     NEXT = 572,
     NO = 573,
     NONE = 574,
     NOT = 575,
     NOTHING = 576,
     NOTIFY = 577,
     NOTNULL = 578,
     NOWAIT = 579,
     NULL_P = 580,
     NULLIF = 581,
     NULLS_P = 582,
     NUMERIC = 583,
     OBJECT_P = 584,
     OF = 585,
     OFF = 586,
     OFFSET = 587,
     OIDS = 588,
     ON = 589,
     ONLY = 590,
     OPERATOR = 591,
     OPTION = 592,
     OPTIONS = 593,
     OR = 594,
     ORDER = 595,
     ORDINALITY = 596,
     OUT_P = 597,
     OUTER_P = 598,
     OVER = 599,
     OVERLAPS = 600,
     OVERLAY = 601,
     OWNED = 602,
     OWNER = 603,
     PARSER = 604,
     PARTIAL = 605,
     PARTITION = 606,
     PASSING = 607,
     PASSWORD = 608,
     PLACING = 609,
     PLANS = 610,
     POLICY = 611,
     POSITION = 612,
     PRECEDING = 613,
     PRECISION = 614,
     PRESERVE = 615,
     PREPARE = 616,
     PREPARED = 617,
     PRIMARY = 618,
     PRIOR = 619,
     PRIVILEGES = 620,
     PROCEDURAL = 621,
     PROCEDURE = 622,
     PROGRAM = 623,
     QUOTE = 624,
     RANGE = 625,
     READ = 626,
     REAL = 627,
     REASSIGN = 628,
     RECHECK = 629,
     RECURSIVE = 630,
     REF = 631,
     REFERENCES = 632,
     REFRESH = 633,
     REINDEX = 634,
     RELATIVE_P = 635,
     RELEASE = 636,
     RENAME = 637,
     REPEATABLE = 638,
     REPLACE = 639,
     REPLICA = 640,
     RESET = 641,
     RESTART = 642,
     RESTRICT = 643,
     RETURNING = 644,
     RETURNS = 645,
     REVOKE = 646,
     RIGHT = 647,
     ROLE = 648,
     ROLLBACK = 649,
     ROLLUP = 650,
     ROW = 651,
     ROWS = 652,
     RULE = 653,
     SAVEPOINT = 654,
     SCHEMA = 655,
     SCROLL = 656,
     SEARCH = 657,
     SECOND_P = 658,
     SECURITY = 659,
     SELECT = 660,
     SEQUENCE = 661,
     SEQUENCES = 662,
     SERIALIZABLE = 663,
     SERVER = 664,
     SESSION = 665,
     SESSION_USER = 666,
     SET = 667,
     SETS = 668,
     SETOF = 669,
     SHARE = 670,
     SHOW = 671,
     SIMILAR = 672,
     SIMPLE = 673,
     SKIP = 674,
     SMALLINT = 675,
     SNAPSHOT = 676,
     SOME = 677,
     SQL_P = 678,
     STABLE = 679,
     STANDALONE_P = 680,
     START = 681,
     STATEMENT = 682,
     STATISTICS = 683,
     STDIN = 684,
     STDOUT = 685,
     STORAGE = 686,
     STRICT_P = 687,
     STRIP_P = 688,
     SUBSTRING = 689,
     SYMMETRIC = 690,
     SYSID = 691,
     SYSTEM_P = 692,
     TABLE = 693,
     TABLES = 694,
     TABLESAMPLE = 695,
     TABLESPACE = 696,
     TEMP = 697,
     TEMPLATE = 698,
     TEMPORARY = 699,
     TEXT_P = 700,
     THEN = 701,
     TIME = 702,
     TIMESTAMP = 703,
     TO = 704,
     TRAILING = 705,
     TRANSACTION = 706,
     TRANSFORM = 707,
     TREAT = 708,
     TRIGGER = 709,
     TRIM = 710,
     TRUE_P = 711,
     TRUNCATE = 712,
     TRUSTED = 713,
     TYPE_P = 714,
     TYPES_P = 715,
     UNBOUNDED = 716,
     UNCOMMITTED = 717,
     UNENCRYPTED = 718,
     UNION = 719,
     UNIQUE = 720,
     UNKNOWN = 721,
     UNLISTEN = 722,
     UNLOGGED = 723,
     UNTIL = 724,
     UPDATE = 725,
     USER = 726,
     USING = 727,
     VACUUM = 728,
     VALID = 729,
     VALIDATE = 730,
     VALIDATOR = 731,
     VALUE_P = 732,
     VALUES = 733,
     VARCHAR = 734,
     VARIADIC = 735,
     VARYING = 736,
     VERBOSE = 737,
     VERSION_P = 738,
     VIEW = 739,
     VIEWS = 740,
     VOLATILE = 741,
     WHEN = 742,
     WHERE = 743,
     WHITESPACE_P = 744,
     WINDOW = 745,
     WITH = 746,
     WITHIN = 747,
     WITHOUT = 748,
     WORK = 749,
     WRAPPER = 750,
     WRITE = 751,
     XML_P = 752,
     XMLATTRIBUTES = 753,
     XMLCONCAT = 754,
     XMLELEMENT = 755,
     XMLEXISTS = 756,
     XMLFOREST = 757,
     XMLPARSE = 758,
     XMLPI = 759,
     XMLROOT = 760,
     XMLSERIALIZE = 761,
     YEAR_P = 762,
     YES_P = 763,
     ZONE = 764,
     NOT_LA = 765,
     NULLS_LA = 766,
     WITH_LA = 767,
     POSTFIXOP = 768,
     UMINUS = 769
   };
#endif



#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
typedef union YYSTYPE
{

/* Line 2068 of yacc.c  */
#line 581 "preproc.y"

	double	dval;
	char	*str;
	int		ival;
	struct	when		action;
	struct	index		index;
	int		tagname;
	struct	this_type	type;
	enum	ECPGttype	type_enum;
	enum	ECPGdtype	dtype_enum;
	struct	fetch_desc	descriptor;
	struct  su_symbol	struct_union;
	struct	prep		prep;



/* Line 2068 of yacc.c  */
#line 581 "preproc.h"
} YYSTYPE;
# define YYSTYPE_IS_TRIVIAL 1
# define yystype YYSTYPE /* obsolescent; will be withdrawn */
# define YYSTYPE_IS_DECLARED 1
#endif

extern YYSTYPE base_yylval;

#if ! defined YYLTYPE && ! defined YYLTYPE_IS_DECLARED
typedef struct YYLTYPE
{
  int first_line;
  int first_column;
  int last_line;
  int last_column;
} YYLTYPE;
# define yyltype YYLTYPE /* obsolescent; will be withdrawn */
# define YYLTYPE_IS_DECLARED 1
# define YYLTYPE_IS_TRIVIAL 1
#endif

extern YYLTYPE base_yylloc;

