Skip to content

Commit c136799

Browse files
Rafal PrzetakowskiRafal Przetakowski
authored andcommitted
Fix for queries with formatted conditions
1 parent 3ad00cb commit c136799

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

SQLQuery.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ private function explodeQueryParams()
220220
$matches = array();
221221
$this->params = array();
222222

223-
preg_match_all('/{(?!CON)(.*?)(?!CON)}/', str_replace(array("\n", "\r", "\t", " "), " ", $this->sqlQuery), $matches, PREG_PATTERN_ORDER);
223+
preg_match_all('/{(?!CON)(.*?)(?!CON)}/', str_replace(array("\n", "\r"), " ", $this->sqlQuery), $matches, PREG_PATTERN_ORDER);
224224

225225
$queryKeys = $matches[1];
226226

@@ -280,7 +280,7 @@ private function parseConditions()
280280
$matches = array();
281281
$a = 0;
282282
$rec = array();
283-
preg_match_all('{CON\[(.*?)\]:(.*?):CON}', str_replace(array("\n", "\r", "\t", " "), " ", $sqlQuery), $matches, PREG_PATTERN_ORDER);
283+
preg_match_all('{CON\[(.*?)\]:(.*?):CON}', str_replace(array("\n", "\r"), " ", $sqlQuery), $matches, PREG_PATTERN_ORDER);
284284
$keys = $matches[1];
285285
$records = $matches[2];
286286

0 commit comments

Comments
 (0)