Add a function pg_get_keywords() to let clients find out the set of keywords

known to the SQL parser.  Dave Page
This commit is contained in:
Tom Lane
2008-07-03 20:58:47 +00:00
parent e3d9dceef6
commit c63147d6f0
7 changed files with 109 additions and 9 deletions

View File

@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $PostgreSQL: pgsql/src/include/parser/keywords.h,v 1.24 2008/01/01 19:45:58 momjian Exp $
* $PostgreSQL: pgsql/src/include/parser/keywords.h,v 1.25 2008/07/03 20:58:46 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@ -28,6 +28,9 @@ typedef struct ScanKeyword
int16 category; /* see codes above */
} ScanKeyword;
extern const ScanKeyword ScanKeywords[];
extern const ScanKeyword *LastScanKeyword;
extern const ScanKeyword *ScanKeywordLookup(const char *text);
#endif /* KEYWORDS_H */