diff --git a/DbCommand.php b/DbCommand.php index 720ab99..d92b911 100644 --- a/DbCommand.php +++ b/DbCommand.php @@ -136,6 +136,15 @@ protected function prepareSql($query, &$params = null) protected function replaceComment($query, $comment, $queryInComment, $paramName, &$params) { $paramNameLower = mb_strtolower($paramName); + + // Формируем имя параметра точно такое же, какое и забиндено в парметры. + foreach ($params as $key => $value) { + if (mb_strtolower($key) == $paramNameLower) { + $paramName = $key; + break; + } + } + $params = array_change_key_case($params, CASE_LOWER); if (strpos($paramNameLower, '|')) {