summaryrefslogtreecommitdiffstats
path: root/src/Components
diff options
context:
space:
mode:
authorDeven Bansod <devenbansod.bits@gmail.com>2016-09-07 13:52:53 +0530
committerDeven Bansod <devenbansod.bits@gmail.com>2016-09-07 13:52:53 +0530
commit46339f201c0b1f37f3c96ba1a46d3a95b7a87728 (patch)
tree20ce16173b51d377c46090ea86d03ca35896af24 /src/Components
parented538434d31e19faec63929ae2c0dfca545fa50c (diff)
downloadsql-parser-46339f201c0b1f37f3c96ba1a46d3a95b7a87728.zip
sql-parser-46339f201c0b1f37f3c96ba1a46d3a95b7a87728.tar.gz
sql-parser-46339f201c0b1f37f3c96ba1a46d3a95b7a87728.tar.bz2
Add a new test case for statements with missing delimiter
Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
Diffstat (limited to 'src/Components')
-rw-r--r--src/Components/AlterOperation.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Components/AlterOperation.php b/src/Components/AlterOperation.php
index 72d3726..9c77029 100644
--- a/src/Components/AlterOperation.php
+++ b/src/Components/AlterOperation.php
@@ -223,7 +223,7 @@ class AlterOperation extends Component
// We have reached the end of ALTER operation and suddenly found
// a start to new statement, but have not find a delimiter between them
- if (! $token->value == 'SET' && $list->tokens[$list->idx - 1]->value == 'CHARACTER') {
+ 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