OLD | NEW |
1 /***** This file contains automatically generated code ****** | 1 /***** This file contains automatically generated code ****** |
2 ** | 2 ** |
3 ** The code in this file has been automatically generated by | 3 ** The code in this file has been automatically generated by |
4 ** | 4 ** |
5 ** $Header: /home/drh/sqlite/trans/cvs/sqlite/sqlite/tool/mkkeywordhash.c,v
1.38 2009/06/09 14:27:41 drh Exp $ | 5 ** sqlite/tool/mkkeywordhash.c |
6 ** | 6 ** |
7 ** The code in this file implements a function that determines whether | 7 ** The code in this file implements a function that determines whether |
8 ** or not a given identifier is really an SQL keyword. The same thing | 8 ** or not a given identifier is really an SQL keyword. The same thing |
9 ** might be implemented more directly using a hand-written hash table. | 9 ** might be implemented more directly using a hand-written hash table. |
10 ** But by using this automatically generated code, the size of the code | 10 ** But by using this automatically generated code, the size of the code |
11 ** is substantially reduced. This is important for embedded applications | 11 ** is substantially reduced. This is important for embedded applications |
12 ** on platforms with limited memory. | 12 ** on platforms with limited memory. |
13 */ | 13 */ |
14 /* Hash score: 171 */ | 14 /* Hash score: 175 */ |
15 static int keywordCode(const char *z, int n){ | 15 static int keywordCode(const char *z, int n){ |
16 /* zText[] encodes 801 bytes of keywords in 541 bytes */ | 16 /* zText[] encodes 811 bytes of keywords in 541 bytes */ |
17 /* REINDEXEDESCAPEACHECKEYBEFOREIGNOREGEXPLAINSTEADDATABASELECT */ | 17 /* REINDEXEDESCAPEACHECKEYBEFOREIGNOREGEXPLAINSTEADDATABASELECT */ |
18 /* ABLEFTHENDEFERRABLELSEXCEPTRANSACTIONATURALTERAISEXCLUSIVE */ | 18 /* ABLEFTHENDEFERRABLELSEXCEPTRANSACTIONATURALTERAISEXCLUSIVE */ |
19 /* XISTSAVEPOINTERSECTRIGGEREFERENCESCONSTRAINTOFFSETEMPORARY */ | 19 /* XISTSAVEPOINTERSECTRIGGEREFERENCESCONSTRAINTOFFSETEMPORARY */ |
20 /* UNIQUERYATTACHAVINGROUPDATEBEGINNERELEASEBETWEENOTNULLIKE */ | 20 /* UNIQUERYATTACHAVINGROUPDATEBEGINNERELEASEBETWEENOTNULLIKE */ |
21 /* CASCADELETECASECOLLATECREATECURRENT_DATEDETACHIMMEDIATEJOIN */ | 21 /* CASCADELETECASECOLLATECREATECURRENT_DATEDETACHIMMEDIATEJOIN */ |
22 /* SERTMATCHPLANALYZEPRAGMABORTVALUESVIRTUALIMITWHENWHERENAME */ | 22 /* SERTMATCHPLANALYZEPRAGMABORTVALUESVIRTUALIMITWHENWHERENAME */ |
23 /* AFTEREPLACEANDEFAULTAUTOINCREMENTCASTCOLUMNCOMMITCONFLICTCROSS */ | 23 /* AFTEREPLACEANDEFAULTAUTOINCREMENTCASTCOLUMNCOMMITCONFLICTCROSS */ |
24 /* CURRENT_TIMESTAMPRIMARYDEFERREDISTINCTDROPFAILFROMFULLGLOBYIF */ | 24 /* CURRENT_TIMESTAMPRIMARYDEFERREDISTINCTDROPFAILFROMFULLGLOBYIF */ |
25 /* ISNULLORDERESTRICTOUTERIGHTROLLBACKROWUNIONUSINGVACUUMVIEW */ | 25 /* ISNULLORDERESTRICTOUTERIGHTROLLBACKROWUNIONUSINGVACUUMVIEW */ |
26 /* INITIALLY */ | 26 /* INITIALLY */ |
(...skipping 23 matching lines...) Expand all Loading... |
50 'M','I','T','C','O','N','F','L','I','C','T','C','R','O','S','S','C','U', | 50 'M','I','T','C','O','N','F','L','I','C','T','C','R','O','S','S','C','U', |
51 'R','R','E','N','T','_','T','I','M','E','S','T','A','M','P','R','I','M', | 51 'R','R','E','N','T','_','T','I','M','E','S','T','A','M','P','R','I','M', |
52 'A','R','Y','D','E','F','E','R','R','E','D','I','S','T','I','N','C','T', | 52 'A','R','Y','D','E','F','E','R','R','E','D','I','S','T','I','N','C','T', |
53 'D','R','O','P','F','A','I','L','F','R','O','M','F','U','L','L','G','L', | 53 'D','R','O','P','F','A','I','L','F','R','O','M','F','U','L','L','G','L', |
54 'O','B','Y','I','F','I','S','N','U','L','L','O','R','D','E','R','E','S', | 54 'O','B','Y','I','F','I','S','N','U','L','L','O','R','D','E','R','E','S', |
55 'T','R','I','C','T','O','U','T','E','R','I','G','H','T','R','O','L','L', | 55 'T','R','I','C','T','O','U','T','E','R','I','G','H','T','R','O','L','L', |
56 'B','A','C','K','R','O','W','U','N','I','O','N','U','S','I','N','G','V', | 56 'B','A','C','K','R','O','W','U','N','I','O','N','U','S','I','N','G','V', |
57 'A','C','U','U','M','V','I','E','W','I','N','I','T','I','A','L','L','Y', | 57 'A','C','U','U','M','V','I','E','W','I','N','I','T','I','A','L','L','Y', |
58 }; | 58 }; |
59 static const unsigned char aHash[127] = { | 59 static const unsigned char aHash[127] = { |
60 70, 99, 112, 68, 0, 43, 0, 0, 76, 0, 71, 0, 0, | 60 72, 101, 114, 70, 0, 45, 0, 0, 78, 0, 73, 0, 0, |
61 41, 12, 72, 15, 0, 111, 79, 49, 106, 0, 19, 0, 0, | 61 42, 12, 74, 15, 0, 113, 81, 50, 108, 0, 19, 0, 0, |
62 116, 0, 114, 109, 0, 22, 87, 0, 9, 0, 0, 64, 65, | 62 118, 0, 116, 111, 0, 22, 89, 0, 9, 0, 0, 66, 67, |
63 0, 63, 6, 0, 47, 84, 96, 0, 113, 95, 0, 0, 44, | 63 0, 65, 6, 0, 48, 86, 98, 0, 115, 97, 0, 0, 44, |
64 0, 97, 24, 0, 17, 0, 117, 48, 23, 0, 5, 104, 25, | 64 0, 99, 24, 0, 17, 0, 119, 49, 23, 0, 5, 106, 25, |
65 90, 0, 0, 119, 100, 55, 118, 52, 7, 50, 0, 85, 0, | 65 92, 0, 0, 121, 102, 56, 120, 53, 28, 51, 0, 87, 0, |
66 94, 26, 0, 93, 0, 0, 0, 89, 86, 91, 82, 103, 14, | 66 96, 26, 0, 95, 0, 0, 0, 91, 88, 93, 84, 105, 14, |
67 38, 102, 0, 75, 0, 18, 83, 105, 31, 0, 115, 74, 107, | 67 39, 104, 0, 77, 0, 18, 85, 107, 32, 0, 117, 76, 109, |
68 57, 45, 78, 0, 0, 88, 39, 0, 110, 0, 35, 0, 0, | 68 58, 46, 80, 0, 0, 90, 40, 0, 112, 0, 36, 0, 0, |
69 28, 0, 80, 53, 58, 0, 20, 56, 0, 51, | 69 29, 0, 82, 59, 60, 0, 20, 57, 0, 52, |
70 }; | 70 }; |
71 static const unsigned char aNext[119] = { | 71 static const unsigned char aNext[121] = { |
72 0, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, | 72 0, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, |
73 0, 2, 0, 0, 0, 0, 0, 0, 13, 0, 0, 0, 0, | 73 0, 2, 0, 0, 0, 0, 0, 0, 13, 0, 0, 0, 0, |
74 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | 74 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
75 0, 0, 0, 0, 32, 21, 0, 0, 0, 42, 3, 46, 0, | 75 0, 0, 0, 0, 33, 0, 21, 0, 0, 0, 43, 3, 47, |
76 0, 0, 0, 29, 0, 0, 37, 0, 0, 0, 1, 60, 0, | 76 0, 0, 0, 0, 30, 0, 54, 0, 38, 0, 0, 0, 1, |
77 0, 61, 0, 40, 0, 0, 0, 0, 0, 0, 0, 59, 0, | 77 62, 0, 0, 63, 0, 41, 0, 0, 0, 0, 0, 0, 0, |
78 0, 0, 0, 30, 54, 16, 33, 10, 0, 0, 0, 0, 0, | 78 61, 0, 0, 0, 0, 31, 55, 16, 34, 10, 0, 0, 0, |
79 0, 0, 11, 66, 73, 0, 8, 0, 98, 92, 0, 101, 0, | 79 0, 0, 0, 0, 11, 68, 75, 0, 8, 0, 100, 94, 0, |
80 81, 0, 69, 0, 0, 108, 27, 36, 67, 77, 0, 34, 62, | 80 103, 0, 83, 0, 71, 0, 0, 110, 27, 37, 69, 79, 0, |
81 0, 0, | 81 35, 64, 0, 0, |
82 }; | 82 }; |
83 static const unsigned char aLen[119] = { | 83 static const unsigned char aLen[121] = { |
84 7, 7, 5, 4, 6, 4, 5, 3, 6, 7, 3, 6, 6, | 84 7, 7, 5, 4, 6, 4, 5, 3, 6, 7, 3, 6, 6, |
85 7, 7, 3, 8, 2, 6, 5, 4, 4, 3, 10, 4, 6, | 85 7, 7, 3, 8, 2, 6, 5, 4, 4, 3, 10, 4, 6, |
86 11, 2, 7, 5, 5, 9, 6, 9, 9, 7, 10, 10, 4, | 86 11, 6, 2, 7, 5, 5, 9, 6, 9, 9, 7, 10, 10, |
87 6, 2, 3, 4, 9, 2, 6, 5, 6, 6, 5, 6, 5, | 87 4, 6, 2, 3, 9, 4, 2, 6, 5, 6, 6, 5, 6, |
88 5, 7, 7, 7, 3, 4, 4, 7, 3, 6, 4, 7, 6, | 88 5, 5, 7, 7, 7, 3, 2, 4, 4, 7, 3, 6, 4, |
89 12, 6, 9, 4, 6, 5, 4, 7, 6, 5, 6, 7, 5, | 89 7, 6, 12, 6, 9, 4, 6, 5, 4, 7, 6, 5, 6, |
90 4, 5, 6, 5, 7, 3, 7, 13, 2, 2, 4, 6, 6, | 90 7, 5, 4, 5, 6, 5, 7, 3, 7, 13, 2, 2, 4, |
91 8, 5, 17, 12, 7, 8, 8, 2, 4, 4, 4, 4, 4, | 91 6, 6, 8, 5, 17, 12, 7, 8, 8, 2, 4, 4, 4, |
92 2, 2, 6, 5, 8, 5, 5, 8, 3, 5, 5, 6, 4, | 92 4, 4, 2, 2, 6, 5, 8, 5, 5, 8, 3, 5, 5, |
93 9, 3, | 93 6, 4, 9, 3, |
94 }; | 94 }; |
95 static const unsigned short int aOffset[119] = { | 95 static const unsigned short int aOffset[121] = { |
96 0, 2, 2, 8, 9, 14, 16, 20, 23, 25, 25, 29, 33, | 96 0, 2, 2, 8, 9, 14, 16, 20, 23, 25, 25, 29, 33, |
97 36, 41, 46, 48, 53, 54, 59, 62, 65, 67, 69, 78, 81, | 97 36, 41, 46, 48, 53, 54, 59, 62, 65, 67, 69, 78, 81, |
98 86, 95, 96, 101, 105, 109, 117, 122, 128, 136, 142, 152, 159, | 98 86, 91, 95, 96, 101, 105, 109, 117, 122, 128, 136, 142, 152, |
99 162, 162, 165, 167, 167, 171, 176, 179, 184, 189, 194, 197, 203, | 99 159, 162, 162, 165, 167, 167, 171, 176, 179, 184, 189, 194, 197, |
100 206, 210, 217, 223, 223, 226, 229, 233, 234, 238, 244, 248, 255, | 100 203, 206, 210, 217, 223, 223, 223, 226, 229, 233, 234, 238, 244, |
101 261, 273, 279, 288, 290, 296, 301, 303, 310, 315, 320, 326, 332, | 101 248, 255, 261, 273, 279, 288, 290, 296, 301, 303, 310, 315, 320, |
102 337, 341, 344, 350, 354, 361, 363, 370, 372, 374, 383, 387, 393, | 102 326, 332, 337, 341, 344, 350, 354, 361, 363, 370, 372, 374, 383, |
103 399, 407, 412, 412, 428, 435, 442, 443, 450, 454, 458, 462, 466, | 103 387, 393, 399, 407, 412, 412, 428, 435, 442, 443, 450, 454, 458, |
104 469, 471, 473, 479, 483, 491, 495, 500, 508, 511, 516, 521, 527, | 104 462, 466, 469, 471, 473, 479, 483, 491, 495, 500, 508, 511, 516, |
105 531, 536, | 105 521, 527, 531, 536, |
106 }; | 106 }; |
107 static const unsigned char aCode[119] = { | 107 static const unsigned char aCode[121] = { |
108 TK_REINDEX, TK_INDEXED, TK_INDEX, TK_DESC, TK_ESCAPE, | 108 TK_REINDEX, TK_INDEXED, TK_INDEX, TK_DESC, TK_ESCAPE, |
109 TK_EACH, TK_CHECK, TK_KEY, TK_BEFORE, TK_FOREIGN, | 109 TK_EACH, TK_CHECK, TK_KEY, TK_BEFORE, TK_FOREIGN, |
110 TK_FOR, TK_IGNORE, TK_LIKE_KW, TK_EXPLAIN, TK_INSTEAD, | 110 TK_FOR, TK_IGNORE, TK_LIKE_KW, TK_EXPLAIN, TK_INSTEAD, |
111 TK_ADD, TK_DATABASE, TK_AS, TK_SELECT, TK_TABLE, | 111 TK_ADD, TK_DATABASE, TK_AS, TK_SELECT, TK_TABLE, |
112 TK_JOIN_KW, TK_THEN, TK_END, TK_DEFERRABLE, TK_ELSE, | 112 TK_JOIN_KW, TK_THEN, TK_END, TK_DEFERRABLE, TK_ELSE, |
113 TK_EXCEPT, TK_TRANSACTION,TK_ON, TK_JOIN_KW, TK_ALTER, | 113 TK_EXCEPT, TK_TRANSACTION,TK_ACTION, TK_ON, TK_JOIN_KW, |
114 TK_RAISE, TK_EXCLUSIVE, TK_EXISTS, TK_SAVEPOINT, TK_INTERSECT, | 114 TK_ALTER, TK_RAISE, TK_EXCLUSIVE, TK_EXISTS, TK_SAVEPOINT, |
115 TK_TRIGGER, TK_REFERENCES, TK_CONSTRAINT, TK_INTO, TK_OFFSET, | 115 TK_INTERSECT, TK_TRIGGER, TK_REFERENCES, TK_CONSTRAINT, TK_INTO, |
116 TK_OF, TK_SET, TK_TEMP, TK_TEMP, TK_OR, | 116 TK_OFFSET, TK_OF, TK_SET, TK_TEMP, TK_TEMP, |
117 TK_UNIQUE, TK_QUERY, TK_ATTACH, TK_HAVING, TK_GROUP, | 117 TK_OR, TK_UNIQUE, TK_QUERY, TK_ATTACH, TK_HAVING, |
118 TK_UPDATE, TK_BEGIN, TK_JOIN_KW, TK_RELEASE, TK_BETWEEN, | 118 TK_GROUP, TK_UPDATE, TK_BEGIN, TK_JOIN_KW, TK_RELEASE, |
119 TK_NOTNULL, TK_NOT, TK_NULL, TK_LIKE_KW, TK_CASCADE, | 119 TK_BETWEEN, TK_NOTNULL, TK_NOT, TK_NO, TK_NULL, |
120 TK_ASC, TK_DELETE, TK_CASE, TK_COLLATE, TK_CREATE, | 120 TK_LIKE_KW, TK_CASCADE, TK_ASC, TK_DELETE, TK_CASE, |
121 TK_CTIME_KW, TK_DETACH, TK_IMMEDIATE, TK_JOIN, TK_INSERT, | 121 TK_COLLATE, TK_CREATE, TK_CTIME_KW, TK_DETACH, TK_IMMEDIATE, |
122 TK_MATCH, TK_PLAN, TK_ANALYZE, TK_PRAGMA, TK_ABORT, | 122 TK_JOIN, TK_INSERT, TK_MATCH, TK_PLAN, TK_ANALYZE, |
123 TK_VALUES, TK_VIRTUAL, TK_LIMIT, TK_WHEN, TK_WHERE, | 123 TK_PRAGMA, TK_ABORT, TK_VALUES, TK_VIRTUAL, TK_LIMIT, |
124 TK_RENAME, TK_AFTER, TK_REPLACE, TK_AND, TK_DEFAULT, | 124 TK_WHEN, TK_WHERE, TK_RENAME, TK_AFTER, TK_REPLACE, |
125 TK_AUTOINCR, TK_TO, TK_IN, TK_CAST, TK_COLUMNKW, | 125 TK_AND, TK_DEFAULT, TK_AUTOINCR, TK_TO, TK_IN, |
126 TK_COMMIT, TK_CONFLICT, TK_JOIN_KW, TK_CTIME_KW, TK_CTIME_KW, | 126 TK_CAST, TK_COLUMNKW, TK_COMMIT, TK_CONFLICT, TK_JOIN_KW, |
127 TK_PRIMARY, TK_DEFERRED, TK_DISTINCT, TK_IS, TK_DROP, | 127 TK_CTIME_KW, TK_CTIME_KW, TK_PRIMARY, TK_DEFERRED, TK_DISTINCT, |
128 TK_FAIL, TK_FROM, TK_JOIN_KW, TK_LIKE_KW, TK_BY, | 128 TK_IS, TK_DROP, TK_FAIL, TK_FROM, TK_JOIN_KW, |
129 TK_IF, TK_ISNULL, TK_ORDER, TK_RESTRICT, TK_JOIN_KW, | 129 TK_LIKE_KW, TK_BY, TK_IF, TK_ISNULL, TK_ORDER, |
130 TK_JOIN_KW, TK_ROLLBACK, TK_ROW, TK_UNION, TK_USING, | 130 TK_RESTRICT, TK_JOIN_KW, TK_JOIN_KW, TK_ROLLBACK, TK_ROW, |
131 TK_VACUUM, TK_VIEW, TK_INITIALLY, TK_ALL, | 131 TK_UNION, TK_USING, TK_VACUUM, TK_VIEW, TK_INITIALLY, |
| 132 TK_ALL, |
132 }; | 133 }; |
133 int h, i; | 134 int h, i; |
134 if( n<2 ) return TK_ID; | 135 if( n<2 ) return TK_ID; |
135 h = ((charMap(z[0])*4) ^ | 136 h = ((charMap(z[0])*4) ^ |
136 (charMap(z[n-1])*3) ^ | 137 (charMap(z[n-1])*3) ^ |
137 n) % 127; | 138 n) % 127; |
138 for(i=((int)aHash[h])-1; i>=0; i=((int)aNext[i])-1){ | 139 for(i=((int)aHash[h])-1; i>=0; i=((int)aNext[i])-1){ |
139 if( aLen[i]==n && sqlite3StrNICmp(&zText[aOffset[i]],z,n)==0 ){ | 140 if( aLen[i]==n && sqlite3StrNICmp(&zText[aOffset[i]],z,n)==0 ){ |
140 testcase( i==0 ); /* REINDEX */ | 141 testcase( i==0 ); /* REINDEX */ |
141 testcase( i==1 ); /* INDEXED */ | 142 testcase( i==1 ); /* INDEXED */ |
(...skipping 15 matching lines...) Expand all Loading... |
157 testcase( i==17 ); /* AS */ | 158 testcase( i==17 ); /* AS */ |
158 testcase( i==18 ); /* SELECT */ | 159 testcase( i==18 ); /* SELECT */ |
159 testcase( i==19 ); /* TABLE */ | 160 testcase( i==19 ); /* TABLE */ |
160 testcase( i==20 ); /* LEFT */ | 161 testcase( i==20 ); /* LEFT */ |
161 testcase( i==21 ); /* THEN */ | 162 testcase( i==21 ); /* THEN */ |
162 testcase( i==22 ); /* END */ | 163 testcase( i==22 ); /* END */ |
163 testcase( i==23 ); /* DEFERRABLE */ | 164 testcase( i==23 ); /* DEFERRABLE */ |
164 testcase( i==24 ); /* ELSE */ | 165 testcase( i==24 ); /* ELSE */ |
165 testcase( i==25 ); /* EXCEPT */ | 166 testcase( i==25 ); /* EXCEPT */ |
166 testcase( i==26 ); /* TRANSACTION */ | 167 testcase( i==26 ); /* TRANSACTION */ |
167 testcase( i==27 ); /* ON */ | 168 testcase( i==27 ); /* ACTION */ |
168 testcase( i==28 ); /* NATURAL */ | 169 testcase( i==28 ); /* ON */ |
169 testcase( i==29 ); /* ALTER */ | 170 testcase( i==29 ); /* NATURAL */ |
170 testcase( i==30 ); /* RAISE */ | 171 testcase( i==30 ); /* ALTER */ |
171 testcase( i==31 ); /* EXCLUSIVE */ | 172 testcase( i==31 ); /* RAISE */ |
172 testcase( i==32 ); /* EXISTS */ | 173 testcase( i==32 ); /* EXCLUSIVE */ |
173 testcase( i==33 ); /* SAVEPOINT */ | 174 testcase( i==33 ); /* EXISTS */ |
174 testcase( i==34 ); /* INTERSECT */ | 175 testcase( i==34 ); /* SAVEPOINT */ |
175 testcase( i==35 ); /* TRIGGER */ | 176 testcase( i==35 ); /* INTERSECT */ |
176 testcase( i==36 ); /* REFERENCES */ | 177 testcase( i==36 ); /* TRIGGER */ |
177 testcase( i==37 ); /* CONSTRAINT */ | 178 testcase( i==37 ); /* REFERENCES */ |
178 testcase( i==38 ); /* INTO */ | 179 testcase( i==38 ); /* CONSTRAINT */ |
179 testcase( i==39 ); /* OFFSET */ | 180 testcase( i==39 ); /* INTO */ |
180 testcase( i==40 ); /* OF */ | 181 testcase( i==40 ); /* OFFSET */ |
181 testcase( i==41 ); /* SET */ | 182 testcase( i==41 ); /* OF */ |
182 testcase( i==42 ); /* TEMP */ | 183 testcase( i==42 ); /* SET */ |
183 testcase( i==43 ); /* TEMPORARY */ | 184 testcase( i==43 ); /* TEMPORARY */ |
184 testcase( i==44 ); /* OR */ | 185 testcase( i==44 ); /* TEMP */ |
185 testcase( i==45 ); /* UNIQUE */ | 186 testcase( i==45 ); /* OR */ |
186 testcase( i==46 ); /* QUERY */ | 187 testcase( i==46 ); /* UNIQUE */ |
187 testcase( i==47 ); /* ATTACH */ | 188 testcase( i==47 ); /* QUERY */ |
188 testcase( i==48 ); /* HAVING */ | 189 testcase( i==48 ); /* ATTACH */ |
189 testcase( i==49 ); /* GROUP */ | 190 testcase( i==49 ); /* HAVING */ |
190 testcase( i==50 ); /* UPDATE */ | 191 testcase( i==50 ); /* GROUP */ |
191 testcase( i==51 ); /* BEGIN */ | 192 testcase( i==51 ); /* UPDATE */ |
192 testcase( i==52 ); /* INNER */ | 193 testcase( i==52 ); /* BEGIN */ |
193 testcase( i==53 ); /* RELEASE */ | 194 testcase( i==53 ); /* INNER */ |
194 testcase( i==54 ); /* BETWEEN */ | 195 testcase( i==54 ); /* RELEASE */ |
195 testcase( i==55 ); /* NOTNULL */ | 196 testcase( i==55 ); /* BETWEEN */ |
196 testcase( i==56 ); /* NOT */ | 197 testcase( i==56 ); /* NOTNULL */ |
197 testcase( i==57 ); /* NULL */ | 198 testcase( i==57 ); /* NOT */ |
198 testcase( i==58 ); /* LIKE */ | 199 testcase( i==58 ); /* NO */ |
199 testcase( i==59 ); /* CASCADE */ | 200 testcase( i==59 ); /* NULL */ |
200 testcase( i==60 ); /* ASC */ | 201 testcase( i==60 ); /* LIKE */ |
201 testcase( i==61 ); /* DELETE */ | 202 testcase( i==61 ); /* CASCADE */ |
202 testcase( i==62 ); /* CASE */ | 203 testcase( i==62 ); /* ASC */ |
203 testcase( i==63 ); /* COLLATE */ | 204 testcase( i==63 ); /* DELETE */ |
204 testcase( i==64 ); /* CREATE */ | 205 testcase( i==64 ); /* CASE */ |
205 testcase( i==65 ); /* CURRENT_DATE */ | 206 testcase( i==65 ); /* COLLATE */ |
206 testcase( i==66 ); /* DETACH */ | 207 testcase( i==66 ); /* CREATE */ |
207 testcase( i==67 ); /* IMMEDIATE */ | 208 testcase( i==67 ); /* CURRENT_DATE */ |
208 testcase( i==68 ); /* JOIN */ | 209 testcase( i==68 ); /* DETACH */ |
209 testcase( i==69 ); /* INSERT */ | 210 testcase( i==69 ); /* IMMEDIATE */ |
210 testcase( i==70 ); /* MATCH */ | 211 testcase( i==70 ); /* JOIN */ |
211 testcase( i==71 ); /* PLAN */ | 212 testcase( i==71 ); /* INSERT */ |
212 testcase( i==72 ); /* ANALYZE */ | 213 testcase( i==72 ); /* MATCH */ |
213 testcase( i==73 ); /* PRAGMA */ | 214 testcase( i==73 ); /* PLAN */ |
214 testcase( i==74 ); /* ABORT */ | 215 testcase( i==74 ); /* ANALYZE */ |
215 testcase( i==75 ); /* VALUES */ | 216 testcase( i==75 ); /* PRAGMA */ |
216 testcase( i==76 ); /* VIRTUAL */ | 217 testcase( i==76 ); /* ABORT */ |
217 testcase( i==77 ); /* LIMIT */ | 218 testcase( i==77 ); /* VALUES */ |
218 testcase( i==78 ); /* WHEN */ | 219 testcase( i==78 ); /* VIRTUAL */ |
219 testcase( i==79 ); /* WHERE */ | 220 testcase( i==79 ); /* LIMIT */ |
220 testcase( i==80 ); /* RENAME */ | 221 testcase( i==80 ); /* WHEN */ |
221 testcase( i==81 ); /* AFTER */ | 222 testcase( i==81 ); /* WHERE */ |
222 testcase( i==82 ); /* REPLACE */ | 223 testcase( i==82 ); /* RENAME */ |
223 testcase( i==83 ); /* AND */ | 224 testcase( i==83 ); /* AFTER */ |
224 testcase( i==84 ); /* DEFAULT */ | 225 testcase( i==84 ); /* REPLACE */ |
225 testcase( i==85 ); /* AUTOINCREMENT */ | 226 testcase( i==85 ); /* AND */ |
226 testcase( i==86 ); /* TO */ | 227 testcase( i==86 ); /* DEFAULT */ |
227 testcase( i==87 ); /* IN */ | 228 testcase( i==87 ); /* AUTOINCREMENT */ |
228 testcase( i==88 ); /* CAST */ | 229 testcase( i==88 ); /* TO */ |
229 testcase( i==89 ); /* COLUMN */ | 230 testcase( i==89 ); /* IN */ |
230 testcase( i==90 ); /* COMMIT */ | 231 testcase( i==90 ); /* CAST */ |
231 testcase( i==91 ); /* CONFLICT */ | 232 testcase( i==91 ); /* COLUMN */ |
232 testcase( i==92 ); /* CROSS */ | 233 testcase( i==92 ); /* COMMIT */ |
233 testcase( i==93 ); /* CURRENT_TIMESTAMP */ | 234 testcase( i==93 ); /* CONFLICT */ |
234 testcase( i==94 ); /* CURRENT_TIME */ | 235 testcase( i==94 ); /* CROSS */ |
235 testcase( i==95 ); /* PRIMARY */ | 236 testcase( i==95 ); /* CURRENT_TIMESTAMP */ |
236 testcase( i==96 ); /* DEFERRED */ | 237 testcase( i==96 ); /* CURRENT_TIME */ |
237 testcase( i==97 ); /* DISTINCT */ | 238 testcase( i==97 ); /* PRIMARY */ |
238 testcase( i==98 ); /* IS */ | 239 testcase( i==98 ); /* DEFERRED */ |
239 testcase( i==99 ); /* DROP */ | 240 testcase( i==99 ); /* DISTINCT */ |
240 testcase( i==100 ); /* FAIL */ | 241 testcase( i==100 ); /* IS */ |
241 testcase( i==101 ); /* FROM */ | 242 testcase( i==101 ); /* DROP */ |
242 testcase( i==102 ); /* FULL */ | 243 testcase( i==102 ); /* FAIL */ |
243 testcase( i==103 ); /* GLOB */ | 244 testcase( i==103 ); /* FROM */ |
244 testcase( i==104 ); /* BY */ | 245 testcase( i==104 ); /* FULL */ |
245 testcase( i==105 ); /* IF */ | 246 testcase( i==105 ); /* GLOB */ |
246 testcase( i==106 ); /* ISNULL */ | 247 testcase( i==106 ); /* BY */ |
247 testcase( i==107 ); /* ORDER */ | 248 testcase( i==107 ); /* IF */ |
248 testcase( i==108 ); /* RESTRICT */ | 249 testcase( i==108 ); /* ISNULL */ |
249 testcase( i==109 ); /* OUTER */ | 250 testcase( i==109 ); /* ORDER */ |
250 testcase( i==110 ); /* RIGHT */ | 251 testcase( i==110 ); /* RESTRICT */ |
251 testcase( i==111 ); /* ROLLBACK */ | 252 testcase( i==111 ); /* OUTER */ |
252 testcase( i==112 ); /* ROW */ | 253 testcase( i==112 ); /* RIGHT */ |
253 testcase( i==113 ); /* UNION */ | 254 testcase( i==113 ); /* ROLLBACK */ |
254 testcase( i==114 ); /* USING */ | 255 testcase( i==114 ); /* ROW */ |
255 testcase( i==115 ); /* VACUUM */ | 256 testcase( i==115 ); /* UNION */ |
256 testcase( i==116 ); /* VIEW */ | 257 testcase( i==116 ); /* USING */ |
257 testcase( i==117 ); /* INITIALLY */ | 258 testcase( i==117 ); /* VACUUM */ |
258 testcase( i==118 ); /* ALL */ | 259 testcase( i==118 ); /* VIEW */ |
| 260 testcase( i==119 ); /* INITIALLY */ |
| 261 testcase( i==120 ); /* ALL */ |
259 return aCode[i]; | 262 return aCode[i]; |
260 } | 263 } |
261 } | 264 } |
262 return TK_ID; | 265 return TK_ID; |
263 } | 266 } |
264 int sqlite3KeywordCode(const unsigned char *z, int n){ | 267 int sqlite3KeywordCode(const unsigned char *z, int n){ |
265 return keywordCode((char*)z, n); | 268 return keywordCode((char*)z, n); |
266 } | 269 } |
| 270 #define SQLITE_N_KEYWORD 121 |
OLD | NEW |