|
5 | 5 | namespace Yiisoft\Db\Oracle\Tests\Provider; |
6 | 6 |
|
7 | 7 | use Exception; |
| 8 | +use Yiisoft\Db\Command\Param; |
8 | 9 | use Yiisoft\Db\Constant\ColumnType; |
| 10 | +use Yiisoft\Db\Constant\DataType; |
9 | 11 | use Yiisoft\Db\Constant\PseudoType; |
10 | 12 | use Yiisoft\Db\Constant\ReferentialAction; |
11 | 13 | use Yiisoft\Db\Constraint\ForeignKeyConstraint; |
@@ -75,14 +77,14 @@ public static function buildCondition(): array |
75 | 77 | { |
76 | 78 | $buildCondition = parent::buildCondition(); |
77 | 79 |
|
78 | | - $buildCondition['like-custom-1'] = [['like', 'a', 'b'], '"a" LIKE :qp0 ESCAPE \'!\'', [':qp0' => '%b%']]; |
| 80 | + $buildCondition['like-custom-1'] = [['like', 'a', 'b'], '"a" LIKE :qp0 ESCAPE \'!\'', [':qp0' => new Param('%b%', DataType::STRING)]]; |
79 | 81 | $buildCondition['like-custom-2'] = [ |
80 | 82 | ['like', 'a', new Expression(':qp0', [':qp0' => '%b%'])], |
81 | 83 | '"a" LIKE :qp0 ESCAPE \'!\'', |
82 | 84 | [':qp0' => '%b%'], |
83 | 85 | ]; |
84 | 86 | $buildCondition['like-custom-3'] = [ |
85 | | - ['like', new Expression('CONCAT(col1, col2)'), 'b'], 'CONCAT(col1, col2) LIKE :qp0 ESCAPE \'!\'', [':qp0' => '%b%'], |
| 87 | + ['like', new Expression('CONCAT(col1, col2)'), 'b'], 'CONCAT(col1, col2) LIKE :qp0 ESCAPE \'!\'', [':qp0' => new Param('%b%', DataType::STRING)], |
86 | 88 | ]; |
87 | 89 |
|
88 | 90 | return $buildCondition; |
|
0 commit comments