summaryrefslogtreecommitdiffstats
path: root/src/Statements/LoadStatement.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Statements/LoadStatement.php')
-rw-r--r--src/Statements/LoadStatement.php16
1 files changed, 7 insertions, 9 deletions
diff --git a/src/Statements/LoadStatement.php b/src/Statements/LoadStatement.php
index 13b68e7..45ad05f 100644
--- a/src/Statements/LoadStatement.php
+++ b/src/Statements/LoadStatement.php
@@ -270,15 +270,13 @@ class LoadStatement extends Statement
);
$state = 1;
} elseif ($state === 1) {
- if (($token->type === Token::TYPE_KEYWORD)
- && ($token->keyword === 'REPLACE'
- || $token->keyword === 'IGNORE')
- ) {
- $this->replace_ignore = trim($token->keyword);
- } elseif ($token->type === Token::TYPE_KEYWORD
- && $token->keyword === 'INTO'
- ) {
- $state = 2;
+ if ($token->type === Token::TYPE_KEYWORD) {
+ if ($token->keyword === 'REPLACE'
+ || $token->keyword === 'IGNORE') {
+ $this->replace_ignore = trim($token->keyword);
+ } elseif ($token->keyword === 'INTO') {
+ $state = 2;
+ }
}
} elseif ($state === 2) {
if ($token->type === Token::TYPE_KEYWORD