File tree Expand file tree Collapse file tree 2 files changed +58
-24
lines changed Expand file tree Collapse file tree 2 files changed +58
-24
lines changed Original file line number Diff line number Diff line change @@ -93,6 +93,10 @@ class CreateDefinition extends Component
93
93
'ENFORCED ' => 14 ,
94
94
'NOT ' => 15 ,
95
95
'COMPRESSED ' => 16 ,
96
+ 'SRID ' => [
97
+ 17 ,
98
+ 'var ' ,
99
+ ],
96
100
// Common entries.
97
101
//
98
102
// NOTE: Some of the common options are not in the same order which
Original file line number Diff line number Diff line change 729
729
},
730
730
"key": null,
731
731
"references": null,
732
+ "options": {
733
+ "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray",
734
+ "options": {
735
+ "1": "NOT NULL",
736
+ "17": {
737
+ "name": "SRID",
738
+ "equals": false,
739
+ "expr": "4326",
740
+ "value": "4326"
741
+ }
742
+ }
743
+ }
744
+ },
745
+ {
746
+ "@type": "PhpMyAdmin\\SqlParser\\Components\\CreateDefinition",
747
+ "name": "properties",
748
+ "isConstraint": null,
749
+ "type": {
750
+ "@type": "PhpMyAdmin\\SqlParser\\Components\\DataType",
751
+ "name": "JSON",
752
+ "parameters": [],
753
+ "options": {
754
+ "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray",
755
+ "options": []
756
+ }
757
+ },
758
+ "key": null,
759
+ "references": null,
760
+ "options": {
761
+ "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray",
762
+ "options": {
763
+ "1": "NOT NULL"
764
+ }
765
+ }
766
+ },
767
+ {
768
+ "@type": "PhpMyAdmin\\SqlParser\\Components\\CreateDefinition",
769
+ "name": "title",
770
+ "isConstraint": null,
771
+ "type": {
772
+ "@type": "PhpMyAdmin\\SqlParser\\Components\\DataType",
773
+ "name": "VARCHAR",
774
+ "parameters": [
775
+ "100"
776
+ ],
777
+ "options": {
778
+ "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray",
779
+ "options": []
780
+ }
781
+ },
782
+ "key": null,
783
+ "references": null,
732
784
"options": {
733
785
"@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray",
734
786
"options": {
757
809
}
758
810
},
759
811
"first": 0,
760
- "last": 60
812
+ "last": 67
761
813
}
762
814
],
763
815
"brackets": 0,
766
818
},
767
819
"errors": {
768
820
"lexer": [],
769
- "parser": [
770
- [
771
- "A comma or a closing bracket was expected.",
772
- {
773
- "@type": "@47"
774
- },
775
- 0
776
- ],
777
- [
778
- "Unexpected beginning of statement.",
779
- {
780
- "@type": "@63"
781
- },
782
- 0
783
- ],
784
- [
785
- "Unrecognized statement type.",
786
- {
787
- "@type": "@66"
788
- },
789
- 0
790
- ]
791
- ]
821
+ "parser": []
792
822
}
793
823
}
You can’t perform that action at this time.
0 commit comments