summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMichal Čihař <michal@cihar.com>2017-02-20 08:13:43 +0100
committerMichal Čihař <michal@cihar.com>2017-02-20 08:13:43 +0100
commit2cc5bc5eb4f994a2b578cc4cc044883bcd98edf4 (patch)
tree8db6289e14d6aa102ca2b7d81f192ce97763aa87 /src
parentfe4f5f7a5cb965ec5746c260c063f15e08500fd7 (diff)
downloadsql-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.php2
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;
}