Skip to content

Commit

Permalink
Update src/Components/AlterOperation.php
Browse files Browse the repository at this point in the history
Co-authored-by: William Desportes <[email protected]>
  • Loading branch information
iifawzi and williamdes authored Aug 16, 2021
1 parent cb52bdb commit 40314d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Components/AlterOperation.php
Original file line number Diff line number Diff line change
Expand Up @@ -294,8 +294,8 @@ public static function parse(Parser $parser, TokensList $list, array $options =
$nextToken = $list->getNext();

if ($token->value === 'CHARACTER SET'){
// Reverting the changes we made in the beginning
$list->idx = $currentTokenID;
// Reverting the changes we made in the beginning
$list->idx = $currentTokenID;
} else if ($token->value === 'SET' && $nextToken->value === '('){
// To avoid adding the tokens between the SET() parentheses to the unknown tokens
$list->getNextOfTypeAndValue(Token::TYPE_OPERATOR, ')');
Expand Down

0 comments on commit 40314d5

Please sign in to comment.