Skip to content

Commit 2b92a49

Browse files
committed
Update .out files after #436
Signed-off-by: William Desportes <[email protected]>
1 parent d115890 commit 2b92a49

5 files changed

Lines changed: 15 additions & 126 deletions

File tree

tests/data/lexer/lexSymbolUser2.out

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2,28 +2,6 @@
22
"query": "ALTER USER 'user'@'hostname' IDENTIFIED WITH mysql_native_password BY 'password';",
33
"lexer": {
44
"@type": "PhpMyAdmin\\SqlParser\\Lexer",
5-
"PARSER_METHODS": [
6-
"parseDelimiter",
7-
"parseWhitespace",
8-
"parseNumber",
9-
"parseComment",
10-
"parseOperator",
11-
"parseBool",
12-
"parseString",
13-
"parseSymbol",
14-
"parseKeyword",
15-
"parseLabel",
16-
"parseUnknown"
17-
],
18-
"KEYWORD_NAME_INDICATORS": [
19-
"FROM",
20-
"SET",
21-
"WHERE"
22-
],
23-
"OPERATOR_NAME_INDICATORS": [
24-
",",
25-
"."
26-
],
275
"str": "ALTER USER 'user'@'hostname' IDENTIFIED WITH mysql_native_password BY 'password';",
286
"len": 81,
297
"last": 81,
@@ -169,7 +147,6 @@
169147
"count": 15,
170148
"idx": 0
171149
},
172-
"DEFAULT_DELIMITER": ";",
173150
"delimiter": ";",
174151
"delimiterLen": 1,
175152
"strict": false,

tests/data/lexer/lexSymbolUser3.out

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2,28 +2,6 @@
22
"query": "ALTER USER 'user'@'hostname' WITH MAX_QUERIES_PER_HOUR 500 MAX_UPDATES_PER_HOUR 100;",
33
"lexer": {
44
"@type": "PhpMyAdmin\\SqlParser\\Lexer",
5-
"PARSER_METHODS": [
6-
"parseDelimiter",
7-
"parseWhitespace",
8-
"parseNumber",
9-
"parseComment",
10-
"parseOperator",
11-
"parseBool",
12-
"parseString",
13-
"parseSymbol",
14-
"parseKeyword",
15-
"parseLabel",
16-
"parseUnknown"
17-
],
18-
"KEYWORD_NAME_INDICATORS": [
19-
"FROM",
20-
"SET",
21-
"WHERE"
22-
],
23-
"OPERATOR_NAME_INDICATORS": [
24-
",",
25-
"."
26-
],
275
"str": "ALTER USER 'user'@'hostname' WITH MAX_QUERIES_PER_HOUR 500 MAX_UPDATES_PER_HOUR 100;",
286
"len": 84,
297
"last": 84,
@@ -187,7 +165,6 @@
187165
"count": 17,
188166
"idx": 0
189167
},
190-
"DEFAULT_DELIMITER": ";",
191168
"delimiter": ";",
192169
"delimiterLen": 1,
193170
"strict": false,

tests/data/lexer/lexSymbolUser4_mariadb_100400.out

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2,28 +2,6 @@
22
"query": "ALTER USER 'user'@'hostname' IDENTIFIED VIA mysql_native_password BY 'password';",
33
"lexer": {
44
"@type": "PhpMyAdmin\\SqlParser\\Lexer",
5-
"PARSER_METHODS": [
6-
"parseDelimiter",
7-
"parseWhitespace",
8-
"parseNumber",
9-
"parseComment",
10-
"parseOperator",
11-
"parseBool",
12-
"parseString",
13-
"parseSymbol",
14-
"parseKeyword",
15-
"parseLabel",
16-
"parseUnknown"
17-
],
18-
"KEYWORD_NAME_INDICATORS": [
19-
"FROM",
20-
"SET",
21-
"WHERE"
22-
],
23-
"OPERATOR_NAME_INDICATORS": [
24-
",",
25-
"."
26-
],
275
"str": "ALTER USER 'user'@'hostname' IDENTIFIED VIA mysql_native_password BY 'password';",
286
"len": 80,
297
"last": 80,
@@ -169,7 +147,6 @@
169147
"count": 15,
170148
"idx": 0
171149
},
172-
"DEFAULT_DELIMITER": ";",
173150
"delimiter": ";",
174151
"delimiterLen": 1,
175152
"strict": false,

tests/data/lexer/lexSymbolUser5_mariadb_100400.out

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2,28 +2,6 @@
22
"query": "CREATE USER 'user'@'hostname' IDENTIFIED VIA mysql_native_password BY 'password';",
33
"lexer": {
44
"@type": "PhpMyAdmin\\SqlParser\\Lexer",
5-
"PARSER_METHODS": [
6-
"parseDelimiter",
7-
"parseWhitespace",
8-
"parseNumber",
9-
"parseComment",
10-
"parseOperator",
11-
"parseBool",
12-
"parseString",
13-
"parseSymbol",
14-
"parseKeyword",
15-
"parseLabel",
16-
"parseUnknown"
17-
],
18-
"KEYWORD_NAME_INDICATORS": [
19-
"FROM",
20-
"SET",
21-
"WHERE"
22-
],
23-
"OPERATOR_NAME_INDICATORS": [
24-
",",
25-
"."
26-
],
275
"str": "CREATE USER 'user'@'hostname' IDENTIFIED VIA mysql_native_password BY 'password';",
286
"len": 81,
297
"last": 81,
@@ -169,7 +147,6 @@
169147
"count": 15,
170148
"idx": 0
171149
},
172-
"DEFAULT_DELIMITER": ";",
173150
"delimiter": ";",
174151
"delimiterLen": 1,
175152
"strict": false,

tests/data/parser/parseAlterUser10.out

Lines changed: 15 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -64,31 +64,13 @@
6464
},
6565
{
6666
"@type": "PhpMyAdmin\\SqlParser\\Token",
67-
"token": "IDENTIFIED",
68-
"value": "IDENTIFIED",
69-
"keyword": "IDENTIFIED",
67+
"token": "IDENTIFIED WITH",
68+
"value": "IDENTIFIED WITH",
69+
"keyword": "IDENTIFIED WITH",
7070
"type": 1,
71-
"flags": 1,
71+
"flags": 23,
7272
"position": 29
7373
},
74-
{
75-
"@type": "PhpMyAdmin\\SqlParser\\Token",
76-
"token": " ",
77-
"value": " ",
78-
"keyword": null,
79-
"type": 3,
80-
"flags": 0,
81-
"position": 39
82-
},
83-
{
84-
"@type": "PhpMyAdmin\\SqlParser\\Token",
85-
"token": "WITH",
86-
"value": "WITH",
87-
"keyword": "WITH",
88-
"type": 1,
89-
"flags": 3,
90-
"position": 40
91-
},
9274
{
9375
"@type": "PhpMyAdmin\\SqlParser\\Token",
9476
"token": " ",
@@ -198,8 +180,8 @@
198180
"position": null
199181
}
200182
],
201-
"count": 21,
202-
"idx": 21
183+
"count": 19,
184+
"idx": 19
203185
},
204186
"delimiter": ";",
205187
"delimiterLen": 1,
@@ -231,34 +213,33 @@
231213
"@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray",
232214
"options": {
233215
"2": {
234-
"name": "WITH",
216+
"name": "IDENTIFIED WITH",
235217
"equals": false,
236218
"expr": "mysql_native_password",
237219
"value": "mysql_native_password"
238-
},
239-
"3": "IDENTIFIED"
220+
}
240221
}
241222
},
242223
"field": null,
243224
"partitions": null,
244225
"unknown": [
245226
{
246-
"@type": "@14"
227+
"@type": "@12"
247228
},
248229
{
249-
"@type": "@15"
230+
"@type": "@13"
250231
},
251232
{
252-
"@type": "@16"
233+
"@type": "@14"
253234
},
254235
{
255-
"@type": "@17"
236+
"@type": "@15"
256237
},
257238
{
258-
"@type": "@18"
239+
"@type": "@16"
259240
},
260241
{
261-
"@type": "@19"
242+
"@type": "@17"
262243
}
263244
]
264245
}
@@ -270,7 +251,7 @@
270251
}
271252
},
272253
"first": 0,
273-
"last": 18
254+
"last": 16
274255
}
275256
],
276257
"brackets": 0,

0 commit comments

Comments
 (0)