|
2 | 2 | "query": "ALTER TABLE `bad_table_is_bad` ADD UNIQUE KEY `column1` (`column1`, `column2` ASC);", |
3 | 3 | "lexer": { |
4 | 4 | "@type": "PhpMyAdmin\\SqlParser\\Lexer", |
5 | | - "strict": false, |
6 | | - "errors": [], |
7 | 5 | "str": "ALTER TABLE `bad_table_is_bad` ADD UNIQUE KEY `column1` (`column1`, `column2` ASC);", |
8 | 6 | "len": 83, |
9 | 7 | "last": 83, |
10 | 8 | "list": { |
11 | 9 | "@type": "PhpMyAdmin\\SqlParser\\TokensList", |
12 | | - "count": 22, |
13 | | - "idx": 22, |
14 | 10 | "tokens": [ |
15 | 11 | { |
16 | 12 | "@type": "PhpMyAdmin\\SqlParser\\Token", |
17 | 13 | "token": "ALTER", |
18 | 14 | "value": "ALTER", |
19 | 15 | "keyword": "ALTER", |
20 | | - "type": { |
21 | | - "@type": "PhpMyAdmin\\SqlParser\\TokenType", |
22 | | - "name": "Keyword", |
23 | | - "value": 1 |
24 | | - }, |
| 16 | + "type": 1, |
25 | 17 | "flags": 3, |
26 | 18 | "position": 0 |
27 | 19 | }, |
|
30 | 22 | "token": " ", |
31 | 23 | "value": " ", |
32 | 24 | "keyword": null, |
33 | | - "type": { |
34 | | - "@type": "PhpMyAdmin\\SqlParser\\TokenType", |
35 | | - "name": "Whitespace", |
36 | | - "value": 3 |
37 | | - }, |
| 25 | + "type": 3, |
38 | 26 | "flags": 0, |
39 | 27 | "position": 5 |
40 | 28 | }, |
|
43 | 31 | "token": "TABLE", |
44 | 32 | "value": "TABLE", |
45 | 33 | "keyword": "TABLE", |
46 | | - "type": { |
47 | | - "@type": "@3" |
48 | | - }, |
| 34 | + "type": 1, |
49 | 35 | "flags": 3, |
50 | 36 | "position": 6 |
51 | 37 | }, |
|
54 | 40 | "token": " ", |
55 | 41 | "value": " ", |
56 | 42 | "keyword": null, |
57 | | - "type": { |
58 | | - "@type": "@5" |
59 | | - }, |
| 43 | + "type": 3, |
60 | 44 | "flags": 0, |
61 | 45 | "position": 11 |
62 | 46 | }, |
|
65 | 49 | "token": "`bad_table_is_bad`", |
66 | 50 | "value": "bad_table_is_bad", |
67 | 51 | "keyword": null, |
68 | | - "type": { |
69 | | - "@type": "PhpMyAdmin\\SqlParser\\TokenType", |
70 | | - "name": "Symbol", |
71 | | - "value": 8 |
72 | | - }, |
| 52 | + "type": 8, |
73 | 53 | "flags": 2, |
74 | 54 | "position": 12 |
75 | 55 | }, |
|
78 | 58 | "token": " ", |
79 | 59 | "value": " ", |
80 | 60 | "keyword": null, |
81 | | - "type": { |
82 | | - "@type": "@5" |
83 | | - }, |
| 61 | + "type": 3, |
84 | 62 | "flags": 0, |
85 | 63 | "position": 30 |
86 | 64 | }, |
|
89 | 67 | "token": "ADD", |
90 | 68 | "value": "ADD", |
91 | 69 | "keyword": "ADD", |
92 | | - "type": { |
93 | | - "@type": "@3" |
94 | | - }, |
| 70 | + "type": 1, |
95 | 71 | "flags": 3, |
96 | 72 | "position": 31 |
97 | 73 | }, |
|
100 | 76 | "token": " ", |
101 | 77 | "value": " ", |
102 | 78 | "keyword": null, |
103 | | - "type": { |
104 | | - "@type": "@5" |
105 | | - }, |
| 79 | + "type": 3, |
106 | 80 | "flags": 0, |
107 | 81 | "position": 34 |
108 | 82 | }, |
|
111 | 85 | "token": "UNIQUE KEY", |
112 | 86 | "value": "UNIQUE KEY", |
113 | 87 | "keyword": "UNIQUE KEY", |
114 | | - "type": { |
115 | | - "@type": "@3" |
116 | | - }, |
| 88 | + "type": 1, |
117 | 89 | "flags": 23, |
118 | 90 | "position": 35 |
119 | 91 | }, |
|
122 | 94 | "token": " ", |
123 | 95 | "value": " ", |
124 | 96 | "keyword": null, |
125 | | - "type": { |
126 | | - "@type": "@5" |
127 | | - }, |
| 97 | + "type": 3, |
128 | 98 | "flags": 0, |
129 | 99 | "position": 45 |
130 | 100 | }, |
|
133 | 103 | "token": "`column1`", |
134 | 104 | "value": "column1", |
135 | 105 | "keyword": null, |
136 | | - "type": { |
137 | | - "@type": "@9" |
138 | | - }, |
| 106 | + "type": 8, |
139 | 107 | "flags": 2, |
140 | 108 | "position": 46 |
141 | 109 | }, |
|
144 | 112 | "token": " ", |
145 | 113 | "value": " ", |
146 | 114 | "keyword": null, |
147 | | - "type": { |
148 | | - "@type": "@5" |
149 | | - }, |
| 115 | + "type": 3, |
150 | 116 | "flags": 0, |
151 | 117 | "position": 55 |
152 | 118 | }, |
|
155 | 121 | "token": "(", |
156 | 122 | "value": "(", |
157 | 123 | "keyword": null, |
158 | | - "type": { |
159 | | - "@type": "PhpMyAdmin\\SqlParser\\TokenType", |
160 | | - "name": "Operator", |
161 | | - "value": 2 |
162 | | - }, |
| 124 | + "type": 2, |
163 | 125 | "flags": 16, |
164 | 126 | "position": 56 |
165 | 127 | }, |
|
168 | 130 | "token": "`column1`", |
169 | 131 | "value": "column1", |
170 | 132 | "keyword": null, |
171 | | - "type": { |
172 | | - "@type": "@9" |
173 | | - }, |
| 133 | + "type": 8, |
174 | 134 | "flags": 2, |
175 | 135 | "position": 57 |
176 | 136 | }, |
|
179 | 139 | "token": ",", |
180 | 140 | "value": ",", |
181 | 141 | "keyword": null, |
182 | | - "type": { |
183 | | - "@type": "@18" |
184 | | - }, |
| 142 | + "type": 2, |
185 | 143 | "flags": 16, |
186 | 144 | "position": 66 |
187 | 145 | }, |
|
190 | 148 | "token": " ", |
191 | 149 | "value": " ", |
192 | 150 | "keyword": null, |
193 | | - "type": { |
194 | | - "@type": "@5" |
195 | | - }, |
| 151 | + "type": 3, |
196 | 152 | "flags": 0, |
197 | 153 | "position": 67 |
198 | 154 | }, |
|
201 | 157 | "token": "`column2`", |
202 | 158 | "value": "column2", |
203 | 159 | "keyword": null, |
204 | | - "type": { |
205 | | - "@type": "@9" |
206 | | - }, |
| 160 | + "type": 8, |
207 | 161 | "flags": 2, |
208 | 162 | "position": 68 |
209 | 163 | }, |
|
212 | 166 | "token": " ", |
213 | 167 | "value": " ", |
214 | 168 | "keyword": null, |
215 | | - "type": { |
216 | | - "@type": "@5" |
217 | | - }, |
| 169 | + "type": 3, |
218 | 170 | "flags": 0, |
219 | 171 | "position": 77 |
220 | 172 | }, |
|
223 | 175 | "token": "ASC", |
224 | 176 | "value": "ASC", |
225 | 177 | "keyword": "ASC", |
226 | | - "type": { |
227 | | - "@type": "@3" |
228 | | - }, |
| 178 | + "type": 1, |
229 | 179 | "flags": 3, |
230 | 180 | "position": 78 |
231 | 181 | }, |
|
234 | 184 | "token": ")", |
235 | 185 | "value": ")", |
236 | 186 | "keyword": null, |
237 | | - "type": { |
238 | | - "@type": "@18" |
239 | | - }, |
| 187 | + "type": 2, |
240 | 188 | "flags": 16, |
241 | 189 | "position": 81 |
242 | 190 | }, |
|
245 | 193 | "token": ";", |
246 | 194 | "value": ";", |
247 | 195 | "keyword": null, |
248 | | - "type": { |
249 | | - "@type": "PhpMyAdmin\\SqlParser\\TokenType", |
250 | | - "name": "Delimiter", |
251 | | - "value": 9 |
252 | | - }, |
| 196 | + "type": 9, |
253 | 197 | "flags": 0, |
254 | 198 | "position": 82 |
255 | 199 | }, |
256 | 200 | { |
257 | 201 | "@type": "PhpMyAdmin\\SqlParser\\Token", |
258 | | - "token": "", |
259 | | - "value": "", |
| 202 | + "token": null, |
| 203 | + "value": null, |
260 | 204 | "keyword": null, |
261 | | - "type": { |
262 | | - "@type": "@27" |
263 | | - }, |
| 205 | + "type": 9, |
264 | 206 | "flags": 0, |
265 | 207 | "position": null |
266 | 208 | } |
267 | | - ] |
| 209 | + ], |
| 210 | + "count": 22, |
| 211 | + "idx": 22 |
268 | 212 | }, |
269 | 213 | "delimiter": ";", |
270 | | - "delimiterLen": 1 |
| 214 | + "delimiterLen": 1, |
| 215 | + "strict": false, |
| 216 | + "errors": [] |
271 | 217 | }, |
272 | 218 | "parser": { |
273 | 219 | "@type": "PhpMyAdmin\\SqlParser\\Parser", |
274 | | - "strict": false, |
275 | | - "errors": [], |
276 | 220 | "list": { |
277 | 221 | "@type": "@1" |
278 | 222 | }, |
|
292 | 236 | "altered": [ |
293 | 237 | { |
294 | 238 | "@type": "PhpMyAdmin\\SqlParser\\Components\\AlterOperation", |
| 239 | + "ROUTINE_OPTIONS": { |
| 240 | + "COMMENT": [ |
| 241 | + 1, |
| 242 | + "var" |
| 243 | + ], |
| 244 | + "LANGUAGE SQL": 2, |
| 245 | + "CONTAINS SQL": 3, |
| 246 | + "NO SQL": 3, |
| 247 | + "READS SQL DATA": 3, |
| 248 | + "MODIFIES SQL DATA": 3, |
| 249 | + "SQL SECURITY": 4, |
| 250 | + "DEFINER": 5, |
| 251 | + "INVOKER": 5 |
| 252 | + }, |
295 | 253 | "options": { |
296 | 254 | "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", |
297 | 255 | "options": { |
|
312 | 270 | "partitions": null, |
313 | 271 | "unknown": [ |
314 | 272 | { |
315 | | - "@type": "@17" |
| 273 | + "@type": "@14" |
316 | 274 | }, |
317 | 275 | { |
318 | | - "@type": "@19" |
| 276 | + "@type": "@15" |
319 | 277 | }, |
320 | 278 | { |
321 | | - "@type": "@20" |
| 279 | + "@type": "@16" |
322 | 280 | }, |
323 | 281 | { |
324 | | - "@type": "@21" |
| 282 | + "@type": "@17" |
325 | 283 | }, |
326 | 284 | { |
327 | | - "@type": "@22" |
| 285 | + "@type": "@18" |
328 | 286 | }, |
329 | 287 | { |
330 | | - "@type": "@23" |
| 288 | + "@type": "@19" |
331 | 289 | }, |
332 | 290 | { |
333 | | - "@type": "@24" |
| 291 | + "@type": "@20" |
334 | 292 | }, |
335 | 293 | { |
336 | | - "@type": "@25" |
| 294 | + "@type": "@21" |
337 | 295 | } |
338 | 296 | ] |
339 | 297 | } |
|
348 | 306 | "last": 20 |
349 | 307 | } |
350 | 308 | ], |
351 | | - "brackets": 0 |
| 309 | + "brackets": 0, |
| 310 | + "strict": false, |
| 311 | + "errors": [] |
352 | 312 | }, |
353 | 313 | "errors": { |
354 | 314 | "lexer": [], |
|
0 commit comments