summaryrefslogtreecommitdiffstats
path: root/src/Components/OptionsArray.php
diff options
context:
space:
mode:
authorDan Ungureanu <udan1107@gmail.com>2015-10-02 15:57:46 +0300
committerDan Ungureanu <udan1107@gmail.com>2015-10-02 15:57:46 +0300
commite5b1cd830d2156127ba090d0d173e344db5fcfd1 (patch)
tree5000f32fa75c5a5aef3839a34aadd9e5bd529c67 /src/Components/OptionsArray.php
parent1b5dc58c3470f9b868475bbacb74c4f8509da68f (diff)
downloadsql-parser-e5b1cd830d2156127ba090d0d173e344db5fcfd1.zip
sql-parser-e5b1cd830d2156127ba090d0d173e344db5fcfd1.tar.gz
sql-parser-e5b1cd830d2156127ba090d0d173e344db5fcfd1.tar.bz2
Properly parse options when the value of the option is '='.v2.1.2
Diffstat (limited to 'src/Components/OptionsArray.php')
-rw-r--r--src/Components/OptionsArray.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Components/OptionsArray.php b/src/Components/OptionsArray.php
index a7fbf41..a68df8e 100644
--- a/src/Components/OptionsArray.php
+++ b/src/Components/OptionsArray.php
@@ -197,7 +197,7 @@ class OptionsArray extends Component
}
} elseif ($state === 1) {
$state = 2;
- if ($token->value === '=') {
+ if ($token->token === '=') {
$ret->options[$lastOptionId]['equals'] = true;
continue;
}