summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Utils/BufferedQuery.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Utils/BufferedQuery.php b/src/Utils/BufferedQuery.php
index 1aaa9d7..500862a 100644
--- a/src/Utils/BufferedQuery.php
+++ b/src/Utils/BufferedQuery.php
@@ -209,14 +209,14 @@ class BufferedQuery
*/
if ($this->status === static::STATUS_STRING_SINGLE_QUOTES) {
// Single-quoted strings like 'foo'.
- if ($this->query[$i] === '\'') {
+ if ($this->query[$i] === '\'' && $this->query[$i - 1] !== '\\') {
$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] === '"') {
+ if ($this->query[$i] === '"' && $this->query[$i - 1] !== '\\') {
$this->status = 0;
}
$this->current .= $this->query[$i];