You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
519 B
24 lines
519 B
<?php |
|
|
|
namespace yii\db\cubrid\conditions; |
|
|
|
/** |
|
* {@inheritdoc} |
|
*/ |
|
class LikeConditionBuilder extends \yii\db\conditions\LikeConditionBuilder |
|
{ |
|
/** |
|
* @inheritdoc |
|
*/ |
|
protected $escapeCharacter = '!'; |
|
/** |
|
* `\` is initialized in [[buildLikeCondition()]] method since |
|
* we need to choose replacement value based on [[\yii\db\Schema::quoteValue()]]. |
|
* @inheritdoc |
|
*/ |
|
protected $escapingReplacements = [ |
|
'%' => '!%', |
|
'_' => '!_', |
|
'!' => '!!', |
|
]; |
|
}
|
|
|