From b8449a8b8d4e98062dc28f5ac508b66f8724702f Mon Sep 17 00:00:00 2001 From: kikimor Date: Tue, 3 Jul 2018 17:57:29 +0500 Subject: [PATCH] =?UTF-8?q?=D0=A0=D0=B5=D0=B3=D0=B8=D1=81=D1=82=D1=80?= =?UTF-8?q?=D0=BE=D0=BD=D0=B5=D0=B7=D0=B0=D0=B2=D0=B8=D1=81=D0=B8=D0=BC?= =?UTF-8?q?=D0=BE=D0=B5=20=D1=80=D0=B0=D1=81=D0=BA=D0=BE=D0=BC=D0=B5=D0=BD?= =?UTF-8?q?=D1=82=D0=B8=D1=80=D0=BE=D0=B2=D0=B0=D0=BD=D0=B8=D0=B5=20=D0=BF?= =?UTF-8?q?=D0=B5=D1=80=D0=B5=D0=BC=D0=B5=D0=BD=D0=BD=D1=8B=D1=85=20fix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DbCommand.php | 9 +++++++++ 1 file changed, 9 insertions(+) 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, '|')) {