mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-03 05:48:11 +08:00
Fix #18010: Allow upper or lower case operators in InCondition and LikeCondition
This commit is contained in:
@ -19,6 +19,7 @@ Yii Framework 2 Change Log
|
||||
- Enh #17993: Added `yii\i18n\Formatter::$currencyDecimalSeparator` to allow setting custom symbols for currency decimal in IntlNumberFormatter (XPOHOC269)
|
||||
- Bug #18000: PK value of Oracle ActiveRecord is missing after save (mankwok)
|
||||
- Enh #18006: Allow SameSite cookie pre PHP 7.3 (scottix)
|
||||
- Bug #18010: Allow upper or lower case operators in `InCondition` and `LikeCondition` (alex-code)
|
||||
|
||||
|
||||
2.0.34 March 26, 2020
|
||||
|
||||
@ -33,7 +33,7 @@ class InConditionBuilder implements ExpressionBuilderInterface
|
||||
*/
|
||||
public function build(ExpressionInterface $expression, array &$params = [])
|
||||
{
|
||||
$operator = $expression->getOperator();
|
||||
$operator = strtoupper($expression->getOperator());
|
||||
$column = $expression->getColumn();
|
||||
$values = $expression->getValues();
|
||||
|
||||
|
||||
@ -48,7 +48,7 @@ class LikeConditionBuilder implements ExpressionBuilderInterface
|
||||
*/
|
||||
public function build(ExpressionInterface $expression, array &$params = [])
|
||||
{
|
||||
$operator = $expression->getOperator();
|
||||
$operator = strtoupper($expression->getOperator());
|
||||
$column = $expression->getColumn();
|
||||
$values = $expression->getValue();
|
||||
$escape = $expression->getEscapingReplacements();
|
||||
|
||||
Reference in New Issue
Block a user