271271 },
272272 {
273273 "@type": "PhpMyAdmin\\SqlParser\\Token",
274- "token": "WITH",
275- "value": "WITH",
276- "keyword": "WITH",
274+ "token": "WITH PARSER ",
275+ "value": "WITH PARSER ",
276+ "keyword": "WITH PARSER ",
277277 "type": 1,
278- "flags": 3 ,
278+ "flags": 7 ,
279279 "position": 128
280280 },
281- {
282- "@type": "PhpMyAdmin\\SqlParser\\Token",
283- "token": " ",
284- "value": " ",
285- "keyword": null,
286- "type": 3,
287- "flags": 0,
288- "position": 132
289- },
290- {
291- "@type": "PhpMyAdmin\\SqlParser\\Token",
292- "token": "PARSER",
293- "value": "PARSER",
294- "keyword": "PARSER",
295- "type": 1,
296- "flags": 1,
297- "position": 133
298- },
299281 {
300282 "@type": "PhpMyAdmin\\SqlParser\\Token",
301283 "token": " ",
612594 "position": null
613595 }
614596 ],
615- "count": 67 ,
616- "idx": 68
597+ "count": 65 ,
598+ "idx": 65
617599 },
618600 "delimiter": ";",
619601 "delimiterLen": 1,
698680 "expr": null,
699681 "options": {
700682 "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray",
701- "options": []
683+ "options": {
684+ "3": {
685+ "name": "WITH PARSER",
686+ "equals": false,
687+ "expr": "`ngram`",
688+ "value": "ngram"
689+ }
690+ }
702691 }
703692 },
704693 "references": null,
705694 "options": null
695+ },
696+ {
697+ "@type": "PhpMyAdmin\\SqlParser\\Components\\CreateDefinition",
698+ "name": "my_constraint_1",
699+ "isConstraint": true,
700+ "type": null,
701+ "key": {
702+ "@type": "PhpMyAdmin\\SqlParser\\Components\\Key",
703+ "name": null,
704+ "columns": [
705+ {
706+ "name": "column_one"
707+ }
708+ ],
709+ "type": "FOREIGN KEY",
710+ "expr": null,
711+ "options": {
712+ "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray",
713+ "options": []
714+ }
715+ },
716+ "references": {
717+ "@type": "PhpMyAdmin\\SqlParser\\Components\\Reference",
718+ "table": {
719+ "@type": "PhpMyAdmin\\SqlParser\\Components\\Expression",
720+ "database": null,
721+ "table": "other_table",
722+ "column": null,
723+ "expr": "`other_table`",
724+ "alias": null,
725+ "function": null,
726+ "subquery": null
727+ },
728+ "columns": [
729+ "column_two"
730+ ],
731+ "options": {
732+ "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray",
733+ "options": {
734+ "2": {
735+ "name": "ON DELETE",
736+ "equals": false,
737+ "expr": "RESTRICT",
738+ "value": "RESTRICT"
739+ },
740+ "3": {
741+ "name": "ON UPDATE",
742+ "equals": false,
743+ "expr": "RESTRICT",
744+ "value": "RESTRICT"
745+ }
746+ }
747+ }
748+ },
749+ "options": null
706750 }
707751 ],
708752 "with": null,
724768 }
725769 },
726770 "first": 0,
727- "last": 44
771+ "last": 64
728772 }
729773 ],
730774 "brackets": 0,
733777 },
734778 "errors": {
735779 "lexer": [],
736- "parser": [
737- [
738- "A comma or a closing bracket was expected.",
739- {
740- "@type": "@31"
741- },
742- 0
743- ],
744- [
745- "Unexpected beginning of statement.",
746- {
747- "@type": "@47"
748- },
749- 0
750- ],
751- [
752- "Unrecognized statement type.",
753- {
754- "@type": "@50"
755- },
756- 0
757- ]
758- ]
780+ "parser": []
759781 }
760782}
0 commit comments