diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/Utils/BufferedQuery.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Utils/BufferedQuery.php b/src/Utils/BufferedQuery.php index 500862a..8aad59f 100644 --- a/src/Utils/BufferedQuery.php +++ b/src/Utils/BufferedQuery.php @@ -199,7 +199,7 @@ class BufferedQuery * treated differently, because of the preceding backslash, it will * be ignored. */ - if (($this->status & static::STATUS_COMMENT == 0) && ($this->query[$i] === '\\')) { + if ((($this->status & static::STATUS_COMMENT) == 0) && ($this->query[$i] === '\\')) { $this->current .= $this->query[$i] . $this->query[++$i]; continue; } @@ -209,14 +209,14 @@ class BufferedQuery */ if ($this->status === static::STATUS_STRING_SINGLE_QUOTES) { // Single-quoted strings like 'foo'. - if ($this->query[$i] === '\'' && $this->query[$i - 1] !== '\\') { + if ($this->query[$i] === '\'') { $this->status = 0; } $this->current .= $this->query[$i]; continue; } elseif ($this->status === static::STATUS_STRING_DOUBLE_QUOTES) { // Double-quoted strings like "bar". - if ($this->query[$i] === '"' && $this->query[$i - 1] !== '\\') { + if ($this->query[$i] === '"') { $this->status = 0; } $this->current .= $this->query[$i]; |