Skip to content

Commit d1f80fa

Browse files
authored
Adapt for changes in db (#367)
1 parent f4ca057 commit d1f80fa

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/Provider/QueryBuilderProvider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
use Yiisoft\Db\Constraint\ForeignKey;
1313
use Yiisoft\Db\Expression\Statement\CaseX;
1414
use Yiisoft\Db\Expression\Statement\When;
15-
use Yiisoft\Db\Expression\Value\ArrayExpression;
15+
use Yiisoft\Db\Expression\Value\ArrayValue;
1616
use Yiisoft\Db\Expression\Expression;
1717
use Yiisoft\Db\Expression\Function\ArrayMerge;
1818
use Yiisoft\Db\Expression\Value\Param;
@@ -543,7 +543,7 @@ public static function multiOperandFunctionBuilder(): array
543543
],
544544
'ArrayMerge with 4 operands' => [
545545
ArrayMerge::class,
546-
["'[1,2,3]'", [5, 6, 7], $stringParam, self::getDb()->select(new ArrayExpression([9, 10]))],
546+
["'[1,2,3]'", [5, 6, 7], $stringParam, self::getDb()->select(new ArrayValue([9, 10]))],
547547
'(SELECT JSON_ARRAYAGG(value) AS value FROM ('
548548
. "SELECT value FROM JSON_TABLE('[1,2,3]', '$[*]' COLUMNS(value PATH '$'))"
549549
. " UNION SELECT value FROM JSON_TABLE(:qp0, '$[*]' COLUMNS(value PATH '$'))"

tests/QueryBuilderTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
use Yiisoft\Db\Exception\Exception;
1212
use InvalidArgumentException;
1313
use Yiisoft\Db\Exception\NotSupportedException;
14-
use Yiisoft\Db\Expression\Value\ArrayExpression;
14+
use Yiisoft\Db\Expression\Value\ArrayValue;
1515
use Yiisoft\Db\Expression\Statement\CaseX;
1616
use Yiisoft\Db\Expression\ExpressionInterface;
1717
use Yiisoft\Db\Expression\Function\ArrayMerge;
@@ -632,7 +632,7 @@ public function testArrayMergeWithTypeWithOrdering(
632632
"'[2,1,3]'",
633633
[6, 5, 7],
634634
$stringParam,
635-
self::getDb()->select(new ArrayExpression([10, 9])),
635+
self::getDb()->select(new ArrayValue([10, 9])),
636636
))->type($type)->ordered();
637637
$params = [];
638638

0 commit comments

Comments
 (0)