diff options
author | Michal Čihař <michal@cihar.com> | 2017-02-20 08:13:43 +0100 |
---|---|---|
committer | Michal Čihař <michal@cihar.com> | 2017-02-20 08:13:43 +0100 |
commit | 2cc5bc5eb4f994a2b578cc4cc044883bcd98edf4 (patch) | |
tree | 8db6289e14d6aa102ca2b7d81f192ce97763aa87 /src | |
parent | fe4f5f7a5cb965ec5746c260c063f15e08500fd7 (diff) | |
download | sql-parser-2cc5bc5eb4f994a2b578cc4cc044883bcd98edf4.zip sql-parser-2cc5bc5eb4f994a2b578cc4cc044883bcd98edf4.tar.gz sql-parser-2cc5bc5eb4f994a2b578cc4cc044883bcd98edf4.tar.bz2 |
Revert "Remove invalid condition"
This reverts commit fe4f5f7a5cb965ec5746c260c063f15e08500fd7.
Diffstat (limited to 'src')
-rw-r--r-- | src/Statements/LoadStatement.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Statements/LoadStatement.php b/src/Statements/LoadStatement.php index 2130021..858885e 100644 --- a/src/Statements/LoadStatement.php +++ b/src/Statements/LoadStatement.php @@ -197,7 +197,7 @@ class LoadStatement extends Statement $ret .= ' ' . $this->fields_keyword . ' ' . $this->fields_options; } - if ($this->lines_options !== null) { + if ($this->lines_options !== null && count($this->lines_options) > 0) { $ret .= ' LINES ' . $this->lines_options; } |