summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Components/AlterOperation.php13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/Components/AlterOperation.php b/src/Components/AlterOperation.php
index c81cc8f..72d3726 100644
--- a/src/Components/AlterOperation.php
+++ b/src/Components/AlterOperation.php
@@ -222,11 +222,14 @@ class AlterOperation extends Component
} elseif (!empty(Parser::$STATEMENT_PARSERS[$token->value])) {
// We have reached the end of ALTER operation and suddenly found
// a start to new statement, but have not find a delimiter between them
- $parser->error(
- __('A new statement was found, but no delimiter between it and the previous one.'),
- $token
- );
- break;
+
+ if (! $token->value == 'SET' && $list->tokens[$list->idx - 1]->value == 'CHARACTER') {
+ $parser->error(
+ __('A new statement was found, but no delimiter between it and the previous one.'),
+ $token
+ );
+ break;
+ }
}
$ret->unknown[] = $token;
}