Disallow empty passwords in LDAP authentication, the same way
[PostgreSQL.git] / src / include / parser / keywords.h
blob4c56c14ea3a908a77d8a4e5f77fc7423fe7a62f2
1 /*-------------------------------------------------------------------------
3 * keywords.h
4 * lexical token lookup for key words in PostgreSQL
7 * Portions Copyright (c) 1996-2009, PostgreSQL Global Development Group
8 * Portions Copyright (c) 1994, Regents of the University of California
10 * $PostgreSQL$
12 *-------------------------------------------------------------------------
14 #ifndef KEYWORDS_H
15 #define KEYWORDS_H
17 /* Keyword categories --- should match lists in gram.y */
18 #define UNRESERVED_KEYWORD 0
19 #define COL_NAME_KEYWORD 1
20 #define TYPE_FUNC_NAME_KEYWORD 2
21 #define RESERVED_KEYWORD 3
24 typedef struct ScanKeyword
26 const char *name; /* in lower case */
27 int16 value; /* grammar's token code */
28 int16 category; /* see codes above */
29 } ScanKeyword;
31 extern const ScanKeyword ScanKeywords[];
32 extern const ScanKeyword *LastScanKeyword;
34 extern const ScanKeyword *ScanKeywordLookup(const char *text);
36 #endif /* KEYWORDS_H */