src/Components/CreateDefinition.php 1 location
|
@@ 288-293 (lines=6) @@
|
| 285 |
|
$ret[] = $expr; |
| 286 |
|
} |
| 287 |
|
|
| 288 |
|
if (($state !== 0) && ($state !== 6)) { |
| 289 |
|
$parser->error( |
| 290 |
|
'A closing bracket was expected.', |
| 291 |
|
$list->tokens[$list->idx - 1] |
| 292 |
|
); |
| 293 |
|
} |
| 294 |
|
|
| 295 |
|
--$list->idx; |
| 296 |
|
|
src/Components/CaseExpression.php 1 location
|
@@ 214-221 (lines=8) @@
|
| 211 |
|
} |
| 212 |
|
} |
| 213 |
|
|
| 214 |
|
if ($state !== 3) { |
| 215 |
|
$parser->error( |
| 216 |
|
'Unexpected end of CASE expression', |
| 217 |
|
$list->tokens[$list->idx - 1] |
| 218 |
|
); |
| 219 |
|
} else { |
| 220 |
|
/* |
| 221 |
|
// Seek Alias |
| 222 |
|
// To fix https://github.com/phpmyadmin/sql-parser/issues/192 |
| 223 |
|
// (a) CASE...END [, or KEYWORD] |
| 224 |
|
// (b) CASE...END AS XXX [, or KEYWORD] |