From 40314d535351726e8d9843c57c4fbfb2deba179a Mon Sep 17 00:00:00 2001 From: "Fawzi E. Abdulfattah" Date: Mon, 16 Aug 2021 22:44:59 +0200 Subject: [PATCH] Update src/Components/AlterOperation.php Co-authored-by: William Desportes --- src/Components/AlterOperation.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Components/AlterOperation.php b/src/Components/AlterOperation.php index 3a0d961f1..230838455 100644 --- a/src/Components/AlterOperation.php +++ b/src/Components/AlterOperation.php @@ -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, ')');