From c63147d6f0e86d96ffb315147f36af613a35c2ce Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Thu, 3 Jul 2008 20:58:47 +0000 Subject: Add a function pg_get_keywords() to let clients find out the set of keywords known to the SQL parser. Dave Page --- src/include/parser/keywords.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/include/parser') diff --git a/src/include/parser/keywords.h b/src/include/parser/keywords.h index 717e20e7df4..2da7fd3da9e 100644 --- a/src/include/parser/keywords.h +++ b/src/include/parser/keywords.h @@ -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 */ -- cgit v1.2.3