Skip to content

Commit fd1552e

Browse files
committed
Ref #168 - Remove non needed if case after 88d7f3e
Pull-request: #344 Signed-off-by: William Desportes <[email protected]>
1 parent cf9cb91 commit fd1552e

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

src/Components/AlterOperation.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -287,16 +287,11 @@ public static function parse(Parser $parser, TokensList $list, array $options =
287287
// therefore, the first getNext call will start with the current $idx which's $token,
288288
// will return it and increase $idx by 1, which's not guaranteed to be non-comment
289289
// and non-space, that's why we're calling getNext again.
290-
// In order to get back to the original value of idx, we kept it in $currentID
291290

292-
$currentTokenID = $list->idx;
293291
$list->getNext();
294292
$nextToken = $list->getNext();
295293

296-
if ($token->value === 'CHARACTER SET') {
297-
// Reverting the changes we made in the beginning
298-
$list->idx = $currentTokenID;
299-
} elseif ($token->value === 'SET' && $nextToken !== null && $nextToken->value === '(') {
294+
if ($token->value === 'SET' && $nextToken !== null && $nextToken->value === '(') {
300295
// To avoid adding the tokens between the SET() parentheses to the unknown tokens
301296
$list->getNextOfTypeAndValue(Token::TYPE_OPERATOR, ')');
302297
} elseif ($token->value === 'SET' && $nextToken !== null && $nextToken->value === 'DEFAULT') {

0 commit comments

Comments
 (0)