mirror of
https://git.postgresql.org/git/postgresql.git
synced 2026-02-08 04:57:33 +08:00
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:
@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user