diff options
author | Michal Čihař <michal@cihar.com> | 2017-01-03 12:31:52 +0100 |
---|---|---|
committer | Michal Čihař <michal@cihar.com> | 2017-01-03 12:31:52 +0100 |
commit | 14777f12fa5c089888dea54b8ad2c782e00567d9 (patch) | |
tree | 13e42dde99ee14f69a26789613211a3ed7666810 /src | |
parent | 7f6d565ba0eea6ab76c02e9e7826722585bd9f86 (diff) | |
download | sql-parser-14777f12fa5c089888dea54b8ad2c782e00567d9.zip sql-parser-14777f12fa5c089888dea54b8ad2c782e00567d9.tar.gz sql-parser-14777f12fa5c089888dea54b8ad2c782e00567d9.tar.bz2 |
Properly report missing expression error
Signed-off-by: Michal Čihař <michal@cihar.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/Components/SetOperation.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Components/SetOperation.php b/src/Components/SetOperation.php index 0a1a54c..cd8b854 100644 --- a/src/Components/SetOperation.php +++ b/src/Components/SetOperation.php @@ -106,6 +106,7 @@ class SetOperation extends Component ) ); if ($tmp == null) { + $parser->error(__('Missing expression.'), $token); break; } $expr->column = trim($expr->column); |