Skip to content

Commit e6933f7

Browse files
committed
Update test data
Signed-off-by: William Desportes <williamdes@wdes.fr>
1 parent f5123d8 commit e6933f7

364 files changed

Lines changed: 25 additions & 7766 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/Tools/CustomJsonSerializer.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ class CustomJsonSerializer extends JsonSerializer
3030
'databaseOptions',
3131
'delimiters',
3232
'joins',
33+
'statementOptions',
3334
'statementFieldsOptions',
3435
'statementLinesOptions',
3536
'triggerOptions',

tests/data/bugs/gh14.out

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -367,24 +367,6 @@
367367
"unknown": []
368368
}
369369
],
370-
"statementOptions": {
371-
"ONLINE": 1,
372-
"OFFLINE": 1,
373-
"IGNORE": 2,
374-
"DEFINER": [
375-
2,
376-
"expr="
377-
],
378-
"DATABASE": 3,
379-
"EVENT": 3,
380-
"FUNCTION": 3,
381-
"PROCEDURE": 3,
382-
"SERVER": 3,
383-
"TABLE": 3,
384-
"TABLESPACE": 3,
385-
"USER": 3,
386-
"VIEW": 3
387-
},
388370
"options": {
389371
"@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray",
390372
"options": {

tests/data/bugs/gh16.out

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1231,38 +1231,6 @@
12311231
"statements": [
12321232
{
12331233
"@type": "PhpMyAdmin\\SqlParser\\Statements\\CreateStatement",
1234-
"statementOptions": {
1235-
"TEMPORARY": 1,
1236-
"OR REPLACE": 2,
1237-
"ALGORITHM": [
1238-
3,
1239-
"var="
1240-
],
1241-
"DEFINER": [
1242-
4,
1243-
"expr="
1244-
],
1245-
"SQL SECURITY": [
1246-
5,
1247-
"var"
1248-
],
1249-
"DATABASE": 6,
1250-
"EVENT": 6,
1251-
"FUNCTION": 6,
1252-
"INDEX": 6,
1253-
"UNIQUE INDEX": 6,
1254-
"FULLTEXT INDEX": 6,
1255-
"SPATIAL INDEX": 6,
1256-
"PROCEDURE": 6,
1257-
"SERVER": 6,
1258-
"TABLE": 6,
1259-
"TABLESPACE": 6,
1260-
"TRIGGER": 6,
1261-
"USER": 6,
1262-
"VIEW": 6,
1263-
"SCHEMA": 6,
1264-
"IF NOT EXISTS": 7
1265-
},
12661234
"name": {
12671235
"@type": "PhpMyAdmin\\SqlParser\\Components\\Expression",
12681236
"database": null,

tests/data/bugs/gh317.out

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -222,24 +222,6 @@
222222
]
223223
}
224224
],
225-
"statementOptions": {
226-
"ONLINE": 1,
227-
"OFFLINE": 1,
228-
"IGNORE": 2,
229-
"DEFINER": [
230-
2,
231-
"expr="
232-
],
233-
"DATABASE": 3,
234-
"EVENT": 3,
235-
"FUNCTION": 3,
236-
"PROCEDURE": 3,
237-
"SERVER": 3,
238-
"TABLE": 3,
239-
"TABLESPACE": 3,
240-
"USER": 3,
241-
"VIEW": 3
242-
},
243225
"options": {
244226
"@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray",
245227
"options": {

tests/data/bugs/gh9.out

Lines changed: 0 additions & 90 deletions
Original file line numberDiff line numberDiff line change
@@ -700,23 +700,6 @@
700700
"statements": [
701701
{
702702
"@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement",
703-
"statementOptions": {
704-
"ALL": 1,
705-
"DISTINCT": 1,
706-
"DISTINCTROW": 1,
707-
"HIGH_PRIORITY": 2,
708-
"MAX_STATEMENT_TIME": [
709-
3,
710-
"var="
711-
],
712-
"STRAIGHT_JOIN": 4,
713-
"SQL_SMALL_RESULT": 5,
714-
"SQL_BIG_RESULT": 6,
715-
"SQL_BUFFER_RESULT": 7,
716-
"SQL_CACHE": 8,
717-
"SQL_NO_CACHE": 8,
718-
"SQL_CALC_FOUND_ROWS": 9
719-
},
720703
"expr": [
721704
{
722705
"@type": "PhpMyAdmin\\SqlParser\\Components\\Expression",
@@ -763,23 +746,6 @@
763746
},
764747
{
765748
"@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement",
766-
"statementOptions": {
767-
"ALL": 1,
768-
"DISTINCT": 1,
769-
"DISTINCTROW": 1,
770-
"HIGH_PRIORITY": 2,
771-
"MAX_STATEMENT_TIME": [
772-
3,
773-
"var="
774-
],
775-
"STRAIGHT_JOIN": 4,
776-
"SQL_SMALL_RESULT": 5,
777-
"SQL_BIG_RESULT": 6,
778-
"SQL_BUFFER_RESULT": 7,
779-
"SQL_CACHE": 8,
780-
"SQL_NO_CACHE": 8,
781-
"SQL_CALC_FOUND_ROWS": 9
782-
},
783749
"expr": [
784750
{
785751
"@type": "PhpMyAdmin\\SqlParser\\Components\\Expression",
@@ -830,38 +796,6 @@
830796
"statements": [
831797
{
832798
"@type": "PhpMyAdmin\\SqlParser\\Statements\\CreateStatement",
833-
"statementOptions": {
834-
"TEMPORARY": 1,
835-
"OR REPLACE": 2,
836-
"ALGORITHM": [
837-
3,
838-
"var="
839-
],
840-
"DEFINER": [
841-
4,
842-
"expr="
843-
],
844-
"SQL SECURITY": [
845-
5,
846-
"var"
847-
],
848-
"DATABASE": 6,
849-
"EVENT": 6,
850-
"FUNCTION": 6,
851-
"INDEX": 6,
852-
"UNIQUE INDEX": 6,
853-
"FULLTEXT INDEX": 6,
854-
"SPATIAL INDEX": 6,
855-
"PROCEDURE": 6,
856-
"SERVER": 6,
857-
"TABLE": 6,
858-
"TABLESPACE": 6,
859-
"TRIGGER": 6,
860-
"USER": 6,
861-
"VIEW": 6,
862-
"SCHEMA": 6,
863-
"IF NOT EXISTS": 7
864-
},
865799
"name": {
866800
"@type": "PhpMyAdmin\\SqlParser\\Components\\Expression",
867801
"database": null,
@@ -929,18 +863,6 @@
929863
"type": 2,
930864
"statements": null,
931865
"end": null,
932-
"statementOptions": {
933-
"START TRANSACTION": 1,
934-
"BEGIN": 1,
935-
"COMMIT": 1,
936-
"ROLLBACK": 1,
937-
"WITH CONSISTENT SNAPSHOT": 2,
938-
"WORK": 2,
939-
"AND NO CHAIN": 3,
940-
"AND CHAIN": 3,
941-
"RELEASE": 4,
942-
"NO RELEASE": 4
943-
},
944866
"options": {
945867
"@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray",
946868
"options": {
@@ -950,18 +872,6 @@
950872
"first": 72,
951873
"last": 72
952874
},
953-
"statementOptions": {
954-
"START TRANSACTION": 1,
955-
"BEGIN": 1,
956-
"COMMIT": 1,
957-
"ROLLBACK": 1,
958-
"WITH CONSISTENT SNAPSHOT": 2,
959-
"WORK": 2,
960-
"AND NO CHAIN": 3,
961-
"AND CHAIN": 3,
962-
"RELEASE": 4,
963-
"NO RELEASE": 4
964-
},
965875
"options": {
966876
"@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray",
967877
"options": {

tests/data/bugs/pma11800.out

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -106,23 +106,6 @@
106106
"statements": [
107107
{
108108
"@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement",
109-
"statementOptions": {
110-
"ALL": 1,
111-
"DISTINCT": 1,
112-
"DISTINCTROW": 1,
113-
"HIGH_PRIORITY": 2,
114-
"MAX_STATEMENT_TIME": [
115-
3,
116-
"var="
117-
],
118-
"STRAIGHT_JOIN": 4,
119-
"SQL_SMALL_RESULT": 5,
120-
"SQL_BIG_RESULT": 6,
121-
"SQL_BUFFER_RESULT": 7,
122-
"SQL_CACHE": 8,
123-
"SQL_NO_CACHE": 8,
124-
"SQL_CALC_FOUND_ROWS": 9
125-
},
126109
"expr": [
127110
{
128111
"@type": "PhpMyAdmin\\SqlParser\\Components\\Expression",

tests/data/bugs/pma11836.out

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -430,23 +430,6 @@
430430
"statements": [
431431
{
432432
"@type": "PhpMyAdmin\\SqlParser\\Statements\\SelectStatement",
433-
"statementOptions": {
434-
"ALL": 1,
435-
"DISTINCT": 1,
436-
"DISTINCTROW": 1,
437-
"HIGH_PRIORITY": 2,
438-
"MAX_STATEMENT_TIME": [
439-
3,
440-
"var="
441-
],
442-
"STRAIGHT_JOIN": 4,
443-
"SQL_SMALL_RESULT": 5,
444-
"SQL_BIG_RESULT": 6,
445-
"SQL_BUFFER_RESULT": 7,
446-
"SQL_CACHE": 8,
447-
"SQL_NO_CACHE": 8,
448-
"SQL_CALC_FOUND_ROWS": 9
449-
},
450433
"expr": [
451434
{
452435
"@type": "PhpMyAdmin\\SqlParser\\Components\\Expression",

tests/data/bugs/pma11843.out

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -331,38 +331,6 @@
331331
"statements": [
332332
{
333333
"@type": "PhpMyAdmin\\SqlParser\\Statements\\CreateStatement",
334-
"statementOptions": {
335-
"TEMPORARY": 1,
336-
"OR REPLACE": 2,
337-
"ALGORITHM": [
338-
3,
339-
"var="
340-
],
341-
"DEFINER": [
342-
4,
343-
"expr="
344-
],
345-
"SQL SECURITY": [
346-
5,
347-
"var"
348-
],
349-
"DATABASE": 6,
350-
"EVENT": 6,
351-
"FUNCTION": 6,
352-
"INDEX": 6,
353-
"UNIQUE INDEX": 6,
354-
"FULLTEXT INDEX": 6,
355-
"SPATIAL INDEX": 6,
356-
"PROCEDURE": 6,
357-
"SERVER": 6,
358-
"TABLE": 6,
359-
"TABLESPACE": 6,
360-
"TRIGGER": 6,
361-
"USER": 6,
362-
"VIEW": 6,
363-
"SCHEMA": 6,
364-
"IF NOT EXISTS": 7
365-
},
366334
"name": {
367335
"@type": "PhpMyAdmin\\SqlParser\\Components\\Expression",
368336
"database": null,

tests/data/bugs/pma11879.out

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -511,12 +511,6 @@
511511
"statements": [
512512
{
513513
"@type": "PhpMyAdmin\\SqlParser\\Statements\\InsertStatement",
514-
"statementOptions": {
515-
"LOW_PRIORITY": 1,
516-
"DELAYED": 2,
517-
"HIGH_PRIORITY": 3,
518-
"IGNORE": 4
519-
},
520514
"into": {
521515
"@type": "PhpMyAdmin\\SqlParser\\Components\\IntoKeyword",
522516
"type": null,

tests/data/misc/parseParameter.out

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -286,12 +286,6 @@
286286
"statements": [
287287
{
288288
"@type": "PhpMyAdmin\\SqlParser\\Statements\\InsertStatement",
289-
"statementOptions": {
290-
"LOW_PRIORITY": 1,
291-
"DELAYED": 2,
292-
"HIGH_PRIORITY": 3,
293-
"IGNORE": 4
294-
},
295289
"into": {
296290
"@type": "PhpMyAdmin\\SqlParser\\Components\\IntoKeyword",
297291
"type": null,

0 commit comments

Comments
 (0)