]> git.8kb.co.uk Git - pgpool-ii/pgpool-ii_2.2.5/blob - parser/keywords.h
Attempt to send a proper failure message to frontend when authentication
[pgpool-ii/pgpool-ii_2.2.5] / parser / keywords.h
1 /*-------------------------------------------------------------------------
2  *
3  * keywords.h
4  *        lexical token lookup for reserved words in postgres SQL
5  *
6  *
7  * Portions Copyright (c) 2003-2008, PgPool Global Development Group
8  * Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
9  * Portions Copyright (c) 1994, Regents of the University of California
10  *
11  * $PostgreSQL: pgsql/src/include/parser/keywords.h,v 1.20 2004/12/31 22:03:38 pgsql Exp $
12  *
13  *-------------------------------------------------------------------------
14  */
15 #ifndef KEYWORDS_H
16 #define KEYWORDS_H
17
18 /* Keyword categories --- should match lists in gram.y */
19 #define UNRESERVED_KEYWORD              0
20 #define COL_NAME_KEYWORD                1
21 #define TYPE_FUNC_NAME_KEYWORD  2
22 #define RESERVED_KEYWORD                3
23
24
25 typedef struct ScanKeyword
26 {
27         const char *name;                       /* in lower case */
28         short           value;                  /* grammar's token code */
29         short           category;               /* see codes above */
30 } ScanKeyword;
31
32 extern const ScanKeyword *ScanKeywordLookup(const char *text);
33
34 #endif   /* KEYWORDS_H */