diff options
author | Dan Ungureanu <udan1107@gmail.com> | 2015-08-11 21:15:34 +0300 |
---|---|---|
committer | Dan Ungureanu <udan1107@gmail.com> | 2015-08-11 21:15:45 +0300 |
commit | c5d240cfbf51443c3a02a6a251256ccd6b64303b (patch) | |
tree | c5c5dd141e884eb7513a4917aeff3c3a819fa043 /src | |
parent | aef354a430d329edcbf12843f8047ef27cb9470c (diff) | |
download | sql-parser-c5d240cfbf51443c3a02a6a251256ccd6b64303b.zip sql-parser-c5d240cfbf51443c3a02a6a251256ccd6b64303b.tar.gz sql-parser-c5d240cfbf51443c3a02a6a251256ccd6b64303b.tar.bz2 |
Fixed a bug which caused the parser to set wrong starting position after a
DELIMITER statement.
Diffstat (limited to 'src')
-rw-r--r-- | src/Parser.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Parser.php b/src/Parser.php index ac92aaf..3b5a40a 100644 --- a/src/Parser.php +++ b/src/Parser.php @@ -375,6 +375,7 @@ namespace SqlParser { ) { // Skipping to the end of this statement. $list->getNextOfType(Token::TYPE_DELIMITER); + $prevLastIdx = $list->idx; continue; } @@ -412,7 +413,6 @@ namespace SqlParser { } // Skipping to the end of this statement. $list->getNextOfType(Token::TYPE_DELIMITER); - // $prevLastIdx = $list->idx; continue; } |