Skip to content

Commit 170ddc6

Browse files
committed
Update test data output for index hints
Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.net>
1 parent f40c620 commit 170ddc6

25 files changed

+100
-50
lines changed

tests/data/bugs/gh496.out

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,8 @@
400400
"expr": "io.id = i.id"
401401
}
402402
],
403-
"using": null
403+
"using": null,
404+
"indexHints": []
404405
}
405406
],
406407
"union": [],

tests/data/bugs/gh498.out

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,8 @@
377377
"expr": "dos.id = uno.id"
378378
}
379379
],
380-
"using": null
380+
"using": null,
381+
"indexHints": []
381382
}
382383
],
383384
"union": [],

tests/data/parser/parseCreateViewAsWithAs.out

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1921,7 +1921,8 @@
19211921
"subquery": null
19221922
},
19231923
"on": null,
1924-
"using": null
1924+
"using": null,
1925+
"indexHints": []
19251926
}
19261927
],
19271928
"union": [],
@@ -2391,7 +2392,8 @@
23912392
"subquery": null
23922393
},
23932394
"on": null,
2394-
"using": null
2395+
"using": null,
2396+
"indexHints": []
23952397
}
23962398
],
23972399
"union": [],

tests/data/parser/parseDeleteJoin.out

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,8 @@
403403
"subquery": null
404404
},
405405
"on": null,
406-
"using": null
406+
"using": null,
407+
"indexHints": []
407408
},
408409
{
409410
"@type": "PhpMyAdmin\\SqlParser\\Components\\JoinKeyword",
@@ -419,7 +420,8 @@
419420
"subquery": null
420421
},
421422
"on": null,
422-
"using": null
423+
"using": null,
424+
"indexHints": []
423425
}
424426
],
425427
"using": null,

tests/data/parser/parseExplain3.out

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -833,7 +833,8 @@
833833
"expr": "payment_date LIKE '2005-08%'"
834834
}
835835
],
836-
"using": null
836+
"using": null,
837+
"indexHints": []
837838
}
838839
],
839840
"union": [],

tests/data/parser/parseSelect13.out

Lines changed: 38 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -9935,7 +9935,8 @@
99359935
"expr": "(user.userid = post.userid)"
99369936
}
99379937
],
9938-
"using": null
9938+
"using": null,
9939+
"indexHints": []
99399940
},
99409941
{
99419942
"@type": "PhpMyAdmin\\SqlParser\\Components\\JoinKeyword",
@@ -9962,7 +9963,8 @@
99629963
"expr": "(userfield.userid = user.userid)"
99639964
}
99649965
],
9965-
"using": null
9966+
"using": null,
9967+
"indexHints": []
99669968
},
99679969
{
99689970
"@type": "PhpMyAdmin\\SqlParser\\Components\\JoinKeyword",
@@ -9989,7 +9991,8 @@
99899991
"expr": "(usertextfield.userid = user.userid)"
99909992
}
99919993
],
9992-
"using": null
9994+
"using": null,
9995+
"indexHints": []
99939996
},
99949997
{
99959998
"@type": "PhpMyAdmin\\SqlParser\\Components\\JoinKeyword",
@@ -10016,7 +10019,8 @@
1001610019
"expr": "(icon.iconid = post.iconid)"
1001710020
}
1001810021
],
10019-
"using": null
10022+
"using": null,
10023+
"indexHints": []
1002010024
},
1002110025
{
1002210026
"@type": "PhpMyAdmin\\SqlParser\\Components\\JoinKeyword",
@@ -10043,7 +10047,8 @@
1004310047
"expr": "(avatar.avatarid = user.avatarid)"
1004410048
}
1004510049
],
10046-
"using": null
10050+
"using": null,
10051+
"indexHints": []
1004710052
},
1004810053
{
1004910054
"@type": "PhpMyAdmin\\SqlParser\\Components\\JoinKeyword",
@@ -10070,7 +10075,8 @@
1007010075
"expr": "(customavatar.userid = user.userid)"
1007110076
}
1007210077
],
10073-
"using": null
10078+
"using": null,
10079+
"indexHints": []
1007410080
},
1007510081
{
1007610082
"@type": "PhpMyAdmin\\SqlParser\\Components\\JoinKeyword",
@@ -10097,7 +10103,8 @@
1009710103
"expr": "(spamlog.postid = post.postid)"
1009810104
}
1009910105
],
10100-
"using": null
10106+
"using": null,
10107+
"indexHints": []
1010110108
},
1010210109
{
1010310110
"@type": "PhpMyAdmin\\SqlParser\\Components\\JoinKeyword",
@@ -10141,7 +10148,8 @@
1014110148
"expr": "deletionlog.type = 'post')"
1014210149
}
1014310150
],
10144-
"using": null
10151+
"using": null,
10152+
"indexHints": []
1014510153
},
1014610154
{
1014710155
"@type": "PhpMyAdmin\\SqlParser\\Components\\JoinKeyword",
@@ -10168,7 +10176,8 @@
1016810176
"expr": "(editlog.postid = post.postid)"
1016910177
}
1017010178
],
10171-
"using": null
10179+
"using": null,
10180+
"indexHints": []
1017210181
},
1017310182
{
1017410183
"@type": "PhpMyAdmin\\SqlParser\\Components\\JoinKeyword",
@@ -10225,7 +10234,8 @@
1022510234
"expr": "postparsed.languageid = 5)"
1022610235
}
1022710236
],
10228-
"using": null
10237+
"using": null,
10238+
"indexHints": []
1022910239
},
1023010240
{
1023110241
"@type": "PhpMyAdmin\\SqlParser\\Components\\JoinKeyword",
@@ -10282,7 +10292,8 @@
1028210292
"expr": "sigparsed.languageid = 5)"
1028310293
}
1028410294
],
10285-
"using": null
10295+
"using": null,
10296+
"indexHints": []
1028610297
},
1028710298
{
1028810299
"@type": "PhpMyAdmin\\SqlParser\\Components\\JoinKeyword",
@@ -10309,7 +10320,8 @@
1030910320
"expr": "(sigpic.userid = post.userid)"
1031010321
}
1031110322
],
10312-
"using": null
10323+
"using": null,
10324+
"indexHints": []
1031310325
},
1031410326
{
1031510327
"@type": "PhpMyAdmin\\SqlParser\\Components\\JoinKeyword",
@@ -10337,7 +10349,8 @@
1033710349
"expr": "post_icon_list.post_id=post.postid"
1033810350
}
1033910351
],
10340-
"using": null
10352+
"using": null,
10353+
"indexHints": []
1034110354
},
1034210355
{
1034310356
"@type": "PhpMyAdmin\\SqlParser\\Components\\JoinKeyword",
@@ -10381,7 +10394,8 @@
1038110394
"expr": "approvedlog.action='postapprove')"
1038210395
}
1038310396
],
10384-
"using": null
10397+
"using": null,
10398+
"indexHints": []
1038510399
},
1038610400
{
1038710401
"@type": "PhpMyAdmin\\SqlParser\\Components\\JoinKeyword",
@@ -10425,7 +10439,8 @@
1042510439
"expr": "movedlog.action='postmove')"
1042610440
}
1042710441
],
10428-
"using": null
10442+
"using": null,
10443+
"indexHints": []
1042910444
},
1043010445
{
1043110446
"@type": "PhpMyAdmin\\SqlParser\\Components\\JoinKeyword",
@@ -10453,7 +10468,8 @@
1045310468
"expr": "scheduled_approval.post_id = post.postid"
1045410469
}
1045510470
],
10456-
"using": null
10471+
"using": null,
10472+
"indexHints": []
1045710473
},
1045810474
{
1045910475
"@type": "PhpMyAdmin\\SqlParser\\Components\\JoinKeyword",
@@ -10480,7 +10496,8 @@
1048010496
"expr": "additional_user_data.userid=post.userid"
1048110497
}
1048210498
],
10483-
"using": null
10499+
"using": null,
10500+
"indexHints": []
1048410501
},
1048510502
{
1048610503
"@type": "PhpMyAdmin\\SqlParser\\Components\\JoinKeyword",
@@ -10508,7 +10525,8 @@
1050810525
"expr": "paid_post_activation.post_id = post.postid"
1050910526
}
1051010527
],
10511-
"using": null
10528+
"using": null,
10529+
"indexHints": []
1051210530
},
1051310531
{
1051410532
"@type": "PhpMyAdmin\\SqlParser\\Components\\JoinKeyword",
@@ -10536,7 +10554,8 @@
1053610554
"expr": "alm_Model_UserData.user_id=user.userid"
1053710555
}
1053810556
],
10539-
"using": null
10557+
"using": null,
10558+
"indexHints": []
1054010559
}
1054110560
],
1054210561
"union": [],

tests/data/parser/parseSelect16.out

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2758,7 +2758,8 @@
27582758
"expr": "qa.pi = p.ID"
27592759
}
27602760
],
2761-
"using": null
2761+
"using": null,
2762+
"indexHints": []
27622763
},
27632764
{
27642765
"@type": "PhpMyAdmin\\SqlParser\\Components\\JoinKeyword",
@@ -2786,7 +2787,8 @@
27862787
"expr": "p.acn = act.an"
27872788
}
27882789
],
2789-
"using": null
2790+
"using": null,
2791+
"indexHints": []
27902792
}
27912793
],
27922794
"union": [],

tests/data/parser/parseSelect3.out

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,8 @@
428428
"expr": "left_tbl.id = right_tbl.id"
429429
}
430430
],
431-
"using": null
431+
"using": null,
432+
"indexHints": []
432433
}
433434
],
434435
"union": [],

tests/data/parser/parseSelect6.out

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -594,7 +594,8 @@
594594
"expr": "t4.c=t1.c)"
595595
}
596596
],
597-
"using": null
597+
"using": null,
598+
"indexHints": []
598599
}
599600
],
600601
"union": [],

tests/data/parser/parseSelect7.out

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -603,7 +603,8 @@
603603
"expr": "t4.c=t1.c)"
604604
}
605605
],
606-
"using": null
606+
"using": null,
607+
"indexHints": []
607608
}
608609
],
609610
"union": [],

tests/data/parser/parseSelect8.out

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,8 @@
392392
"subquery": null
393393
},
394394
"on": null,
395-
"using": null
395+
"using": null,
396+
"indexHints": []
396397
}
397398
],
398399
"union": [],

tests/data/parser/parseSelectJoinCross.out

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,8 @@
393393
"subquery": null
394394
},
395395
"on": null,
396-
"using": null
396+
"using": null,
397+
"indexHints": []
397398
}
398399
],
399400
"union": [],

tests/data/parser/parseSelectJoinMultiple.out

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,8 @@
291291
"subquery": null
292292
},
293293
"on": null,
294-
"using": null
294+
"using": null,
295+
"indexHints": []
295296
},
296297
{
297298
"@type": "PhpMyAdmin\\SqlParser\\Components\\JoinKeyword",
@@ -307,7 +308,8 @@
307308
"subquery": null
308309
},
309310
"on": null,
310-
"using": null
311+
"using": null,
312+
"indexHints": []
311313
}
312314
],
313315
"union": [],

tests/data/parser/parseSelectJoinMultiple2.out

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,8 @@
399399
"subquery": null
400400
},
401401
"on": null,
402-
"using": null
402+
"using": null,
403+
"indexHints": []
403404
},
404405
{
405406
"@type": "PhpMyAdmin\\SqlParser\\Components\\JoinKeyword",
@@ -427,7 +428,8 @@
427428
"expr": "orders.item_id = items.id"
428429
}
429430
],
430-
"using": null
431+
"using": null,
432+
"indexHints": []
431433
}
432434
],
433435
"union": [],

tests/data/parser/parseSelectJoinNatural.out

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,8 @@
238238
"subquery": null
239239
},
240240
"on": null,
241-
"using": null
241+
"using": null,
242+
"indexHints": []
242243
}
243244
],
244245
"union": [],

tests/data/parser/parseSelectJoinNaturalLeft.out

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,8 @@
391391
"subquery": null
392392
},
393393
"on": null,
394-
"using": null
394+
"using": null,
395+
"indexHints": []
395396
}
396397
],
397398
"union": [],

tests/data/parser/parseSelectJoinNaturalLeftOuter.out

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,8 @@
191191
"subquery": null
192192
},
193193
"on": null,
194-
"using": null
194+
"using": null,
195+
"indexHints": []
195196
}
196197
],
197198
"union": [],

0 commit comments

Comments
 (0)