| @@ 211-218 (lines=8) @@ | ||
| 208 | } |
|
| 209 | $this->current .= $this->query[$i]; |
|
| 210 | continue; |
|
| 211 | } elseif ($this->status === static::STATUS_STRING_DOUBLE_QUOTES) { |
|
| 212 | // Double-quoted strings like "bar". |
|
| 213 | if ($this->query[$i] === '"') { |
|
| 214 | $this->status = 0; |
|
| 215 | } |
|
| 216 | $this->current .= $this->query[$i]; |
|
| 217 | continue; |
|
| 218 | } elseif ($this->status === static::STATUS_STRING_BACKTICK) { |
|
| 219 | if ($this->query[$i] === '`') { |
|
| 220 | $this->status = 0; |
|
| 221 | } |
|
| @@ 247-251 (lines=5) @@ | ||
| 244 | $this->status = static::STATUS_STRING_SINGLE_QUOTES; |
|
| 245 | $this->current .= $this->query[$i]; |
|
| 246 | continue; |
|
| 247 | } elseif ($this->query[$i] === '"') { |
|
| 248 | $this->status = static::STATUS_STRING_DOUBLE_QUOTES; |
|
| 249 | $this->current .= $this->query[$i]; |
|
| 250 | continue; |
|
| 251 | } elseif ($this->query[$i] === '`') { |
|
| 252 | $this->status = static::STATUS_STRING_BACKTICK; |
|
| 253 | $this->current .= $this->query[$i]; |
|
| 254 | continue; |
|