Skip to content

Commit 696d036

Browse files
committed
Ref #440 - Ref #319 - Update out files
Pull-request: #440 Signed-off-by: William Desportes <williamdes@wdes.fr>
1 parent daae9fc commit 696d036

File tree

5 files changed

+87
-200
lines changed

5 files changed

+87
-200
lines changed

tests/data/parser/parseAlterTableAddSpatialIndex1.out

Lines changed: 19 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -281,33 +281,31 @@
281281
"@type": "PhpMyAdmin\\SqlParser\\Components\\AlterOperation",
282282
"options": {
283283
"@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray",
284-
"options": []
285-
},
286-
"field": {
287-
"@type": "PhpMyAdmin\\SqlParser\\Components\\Expression",
288-
"database": null,
289-
"table": null,
290-
"column": "ALGORITHM",
291-
"expr": "ALGORITHM",
292-
"alias": null,
293-
"function": null,
294-
"subquery": null
284+
"options": {
285+
"1": {
286+
"name": "ALGORITHM",
287+
"equals": true,
288+
"expr": "INPLACE",
289+
"value": "INPLACE"
290+
}
291+
}
295292
},
293+
"field": null,
296294
"partitions": null,
297-
"unknown": [
298-
{
299-
"@type": "@17"
300-
},
301-
{
302-
"@type": "@18"
303-
}
304-
]
295+
"unknown": []
305296
},
306297
{
307298
"@type": "PhpMyAdmin\\SqlParser\\Components\\AlterOperation",
308299
"options": {
309300
"@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray",
310-
"options": []
301+
"options": {
302+
"1": {
303+
"name": "LOCK",
304+
"equals": true,
305+
"expr": "SHARED",
306+
"value": "SHARED"
307+
}
308+
}
311309
},
312310
"field": null,
313311
"partitions": null,
@@ -330,28 +328,6 @@
330328
},
331329
"errors": {
332330
"lexer": [],
333-
"parser": [
334-
[
335-
"Unrecognized alter operation.",
336-
{
337-
"@type": "@19"
338-
},
339-
0
340-
],
341-
[
342-
"A new statement was found, but no delimiter between it and the previous one.",
343-
{
344-
"@type": "@21"
345-
},
346-
0
347-
],
348-
[
349-
"Unrecognized alter operation.",
350-
{
351-
"@type": "@23"
352-
},
353-
0
354-
]
355-
]
331+
"parser": []
356332
}
357333
}

tests/data/parser/parseAlterTableDropAddIndex1.out

Lines changed: 11 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -431,27 +431,18 @@
431431
"@type": "PhpMyAdmin\\SqlParser\\Components\\AlterOperation",
432432
"options": {
433433
"@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray",
434-
"options": []
435-
},
436-
"field": {
437-
"@type": "PhpMyAdmin\\SqlParser\\Components\\Expression",
438-
"database": null,
439-
"table": null,
440-
"column": "ALGORITHM",
441-
"expr": "ALGORITHM",
442-
"alias": null,
443-
"function": null,
444-
"subquery": null
434+
"options": {
435+
"1": {
436+
"name": "ALGORITHM",
437+
"equals": true,
438+
"expr": "COPY",
439+
"value": "COPY"
440+
}
441+
}
445442
},
443+
"field": null,
446444
"partitions": null,
447-
"unknown": [
448-
{
449-
"@type": "@33"
450-
},
451-
{
452-
"@type": "@34"
453-
}
454-
]
445+
"unknown": []
455446
}
456447
],
457448
"options": {
@@ -470,14 +461,6 @@
470461
},
471462
"errors": {
472463
"lexer": [],
473-
"parser": [
474-
[
475-
"Unrecognized alter operation.",
476-
{
477-
"@type": "@35"
478-
},
479-
0
480-
]
481-
]
464+
"parser": []
482465
}
483466
}

tests/data/parser/parseAlterTableDropColumn1.out

Lines changed: 19 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -269,33 +269,31 @@
269269
"@type": "PhpMyAdmin\\SqlParser\\Components\\AlterOperation",
270270
"options": {
271271
"@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray",
272-
"options": []
273-
},
274-
"field": {
275-
"@type": "PhpMyAdmin\\SqlParser\\Components\\Expression",
276-
"database": null,
277-
"table": null,
278-
"column": "ALGORITHM",
279-
"expr": "ALGORITHM",
280-
"alias": null,
281-
"function": null,
282-
"subquery": null
272+
"options": {
273+
"1": {
274+
"name": "ALGORITHM",
275+
"equals": true,
276+
"expr": "INPLACE",
277+
"value": "INPLACE"
278+
}
279+
}
283280
},
281+
"field": null,
284282
"partitions": null,
285-
"unknown": [
286-
{
287-
"@type": "@16"
288-
},
289-
{
290-
"@type": "@17"
291-
}
292-
]
283+
"unknown": []
293284
},
294285
{
295286
"@type": "PhpMyAdmin\\SqlParser\\Components\\AlterOperation",
296287
"options": {
297288
"@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray",
298-
"options": []
289+
"options": {
290+
"1": {
291+
"name": "LOCK",
292+
"equals": true,
293+
"expr": "NONE",
294+
"value": "NONE"
295+
}
296+
}
299297
},
300298
"field": null,
301299
"partitions": null,
@@ -318,28 +316,6 @@
318316
},
319317
"errors": {
320318
"lexer": [],
321-
"parser": [
322-
[
323-
"Unrecognized alter operation.",
324-
{
325-
"@type": "@18"
326-
},
327-
0
328-
],
329-
[
330-
"A new statement was found, but no delimiter between it and the previous one.",
331-
{
332-
"@type": "@20"
333-
},
334-
0
335-
],
336-
[
337-
"Unrecognized alter operation.",
338-
{
339-
"@type": "@22"
340-
},
341-
0
342-
]
343-
]
319+
"parser": []
344320
}
345321
}

tests/data/parser/parseAlterTableModifyColumn.out

Lines changed: 19 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -351,33 +351,31 @@
351351
"@type": "PhpMyAdmin\\SqlParser\\Components\\AlterOperation",
352352
"options": {
353353
"@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray",
354-
"options": []
355-
},
356-
"field": {
357-
"@type": "PhpMyAdmin\\SqlParser\\Components\\Expression",
358-
"database": null,
359-
"table": null,
360-
"column": "ALGORITHM",
361-
"expr": "ALGORITHM",
362-
"alias": null,
363-
"function": null,
364-
"subquery": null
354+
"options": {
355+
"1": {
356+
"name": "ALGORITHM",
357+
"equals": true,
358+
"expr": "INPLACE",
359+
"value": "INPLACE"
360+
}
361+
}
365362
},
363+
"field": null,
366364
"partitions": null,
367-
"unknown": [
368-
{
369-
"@type": "@23"
370-
},
371-
{
372-
"@type": "@24"
373-
}
374-
]
365+
"unknown": []
375366
},
376367
{
377368
"@type": "PhpMyAdmin\\SqlParser\\Components\\AlterOperation",
378369
"options": {
379370
"@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray",
380-
"options": []
371+
"options": {
372+
"1": {
373+
"name": "LOCK",
374+
"equals": true,
375+
"expr": "SHARED",
376+
"value": "SHARED"
377+
}
378+
}
381379
},
382380
"field": null,
383381
"partitions": null,
@@ -400,28 +398,6 @@
400398
},
401399
"errors": {
402400
"lexer": [],
403-
"parser": [
404-
[
405-
"Unrecognized alter operation.",
406-
{
407-
"@type": "@25"
408-
},
409-
0
410-
],
411-
[
412-
"A new statement was found, but no delimiter between it and the previous one.",
413-
{
414-
"@type": "@27"
415-
},
416-
0
417-
],
418-
[
419-
"Unrecognized alter operation.",
420-
{
421-
"@type": "@29"
422-
},
423-
0
424-
]
425-
]
401+
"parser": []
426402
}
427403
}

tests/data/parser/parseAlterTableRenameIndex2.out

Lines changed: 19 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -307,33 +307,31 @@
307307
"@type": "PhpMyAdmin\\SqlParser\\Components\\AlterOperation",
308308
"options": {
309309
"@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray",
310-
"options": []
311-
},
312-
"field": {
313-
"@type": "PhpMyAdmin\\SqlParser\\Components\\Expression",
314-
"database": null,
315-
"table": null,
316-
"column": "ALGORITHM",
317-
"expr": "ALGORITHM",
318-
"alias": null,
319-
"function": null,
320-
"subquery": null
310+
"options": {
311+
"1": {
312+
"name": "ALGORITHM",
313+
"equals": true,
314+
"expr": "INPLACE",
315+
"value": "INPLACE"
316+
}
317+
}
321318
},
319+
"field": null,
322320
"partitions": null,
323-
"unknown": [
324-
{
325-
"@type": "@20"
326-
},
327-
{
328-
"@type": "@21"
329-
}
330-
]
321+
"unknown": []
331322
},
332323
{
333324
"@type": "PhpMyAdmin\\SqlParser\\Components\\AlterOperation",
334325
"options": {
335326
"@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray",
336-
"options": []
327+
"options": {
328+
"1": {
329+
"name": "LOCK",
330+
"equals": true,
331+
"expr": "NONE",
332+
"value": "NONE"
333+
}
334+
}
337335
},
338336
"field": null,
339337
"partitions": null,
@@ -356,28 +354,6 @@
356354
},
357355
"errors": {
358356
"lexer": [],
359-
"parser": [
360-
[
361-
"Unrecognized alter operation.",
362-
{
363-
"@type": "@22"
364-
},
365-
0
366-
],
367-
[
368-
"A new statement was found, but no delimiter between it and the previous one.",
369-
{
370-
"@type": "@24"
371-
},
372-
0
373-
],
374-
[
375-
"Unrecognized alter operation.",
376-
{
377-
"@type": "@26"
378-
},
379-
0
380-
]
381-
]
357+
"parser": []
382358
}
383359
}

0 commit comments

Comments
 (0)