Skip to content

Commit 4f23c41

Browse files
committed
Fix management of ALTER USER when used with IDENTIFIED WITH option
1 parent dca8142 commit 4f23c41

27 files changed

Lines changed: 418 additions & 6 deletions

src/Components/AlterOperation.php

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,10 @@ class AlterOperation extends Component
159159
1,
160160
'var',
161161
],
162-
'BY' => [
162+
163+
'IDENTIFIED WITH' => [
163164
2,
164-
'expr',
165+
'var',
165166
],
166167
'PASSWORD' => [
167168
2,
@@ -172,6 +173,11 @@ class AlterOperation extends Component
172173
'var',
173174
],
174175

176+
'BY' => [
177+
4,
178+
'expr',
179+
],
180+
175181
'ACCOUNT' => 1,
176182
'DEFAULT' => 1,
177183

src/Contexts/ContextMariaDb100000.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ class ContextMariaDb100000 extends Context
205205
'FULLTEXT KEY' => 23, 'UNIQUE INDEX' => 23,
206206
'SPATIAL INDEX' => 23,
207207
'FULLTEXT INDEX' => 23,
208+
'IDENTIFIED WITH' => 23,
208209

209210
'X' => 33, 'Y' => 33,
210211
'LN' => 33, 'PI' => 33,

src/Contexts/ContextMariaDb100100.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,7 @@ class ContextMariaDb100100 extends Context
216216
'FULLTEXT KEY' => 23, 'UNIQUE INDEX' => 23,
217217
'SPATIAL INDEX' => 23,
218218
'FULLTEXT INDEX' => 23,
219+
'IDENTIFIED WITH' => 23,
219220

220221
'X' => 33, 'Y' => 33,
221222
'LN' => 33, 'PI' => 33,

src/Contexts/ContextMariaDb100200.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,7 @@ class ContextMariaDb100200 extends Context
216216
'FULLTEXT KEY' => 23, 'UNIQUE INDEX' => 23,
217217
'SPATIAL INDEX' => 23,
218218
'FULLTEXT INDEX' => 23,
219+
'IDENTIFIED WITH' => 23,
219220

220221
'X' => 33, 'Y' => 33,
221222
'LN' => 33, 'PI' => 33,

src/Contexts/ContextMariaDb100300.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,7 @@ class ContextMariaDb100300 extends Context
216216
'FULLTEXT KEY' => 23, 'UNIQUE INDEX' => 23,
217217
'SPATIAL INDEX' => 23,
218218
'FULLTEXT INDEX' => 23,
219+
'IDENTIFIED WITH' => 23,
219220

220221
'X' => 33, 'Y' => 33,
221222
'LN' => 33, 'PI' => 33,

src/Contexts/ContextMariaDb100400.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,7 @@ class ContextMariaDb100400 extends Context
216216
'FULLTEXT KEY' => 23, 'UNIQUE INDEX' => 23,
217217
'SPATIAL INDEX' => 23,
218218
'FULLTEXT INDEX' => 23,
219+
'IDENTIFIED WITH' => 23,
219220

220221
'X' => 33, 'Y' => 33,
221222
'LN' => 33, 'PI' => 33,

src/Contexts/ContextMariaDb100500.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,7 @@ class ContextMariaDb100500 extends Context
216216
'FULLTEXT KEY' => 23, 'UNIQUE INDEX' => 23,
217217
'SPATIAL INDEX' => 23,
218218
'FULLTEXT INDEX' => 23,
219+
'IDENTIFIED WITH' => 23,
219220

220221
'X' => 33, 'Y' => 33,
221222
'LN' => 33, 'PI' => 33,

src/Contexts/ContextMariaDb100600.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,7 @@ class ContextMariaDb100600 extends Context
216216
'FULLTEXT KEY' => 23, 'UNIQUE INDEX' => 23,
217217
'SPATIAL INDEX' => 23,
218218
'FULLTEXT INDEX' => 23,
219+
'IDENTIFIED WITH' => 23,
219220

220221
'X' => 33, 'Y' => 33,
221222
'LN' => 33, 'PI' => 33,

src/Contexts/ContextMySql50700.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,7 @@ class ContextMySql50700 extends Context
216216
'FULLTEXT KEY' => 23, 'UNIQUE INDEX' => 23,
217217
'SPATIAL INDEX' => 23,
218218
'FULLTEXT INDEX' => 23,
219+
'IDENTIFIED WITH' => 23,
219220

220221
'X' => 33, 'Y' => 33,
221222
'LN' => 33, 'PI' => 33,

src/Contexts/ContextMySql80000.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,7 @@ class ContextMySql80000 extends Context
217217
'FULLTEXT KEY' => 23, 'UNIQUE INDEX' => 23,
218218
'SPATIAL INDEX' => 23,
219219
'FULLTEXT INDEX' => 23,
220+
'IDENTIFIED WITH' => 23,
220221

221222
'X' => 33, 'Y' => 33,
222223
'LN' => 33, 'PI' => 33,

0 commit comments

Comments
 (0)