Skip to content

Commit

Permalink
Updated parameter replacement for input params
Browse files Browse the repository at this point in the history
  • Loading branch information
noahheck committed Jul 19, 2015
1 parent 2f71fbb commit 7d94ae6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion EPDOStatement/EPDOStatement.php
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,10 @@ public function interpolateQuery($inputParams = null)
}

$testParam = "/" . $key . "(?!\w)/";
$replValue = $this->_prepareValue($replValue);
$replValue = $this->_prepareValue(array(
'value' => $replValue
, 'datatype' => PDO::PARAM_STR
));

$testQuery = preg_replace($testParam, $replValue, $testQuery, 1);
}
Expand Down

0 comments on commit 7d94ae6

Please sign in to comment.