Skip to content

Commit 30bdeb5

Browse files
authored
Adapt for changes in db (#393)
1 parent d2b9673 commit 30bdeb5

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
- New #273: Implement `ColumnSchemaInterface` classes according to the data type of database table columns
88
for type casting performance. Related with yiisoft/db#752 (@Tigrov)
99
- Chg #307: Replace call of `SchemaInterface::getRawTableName()` to `QuoterInterface::getRawTableName()` (@Tigrov)
10-
- New #310: Add JSON overlaps condition builder (@Tigrov)
10+
- New #310, #393: Add JSON overlaps condition builder (@Tigrov)
1111
- Enh #312: Update `bit` type according to main PR yiisoft/db#860 (@Tigrov)
1212
- Enh #315: Raise minimum PHP version to `^8.1` with minor refactoring (@Tigrov)
1313
- New #314, #325: Implement `ColumnFactory` class (@Tigrov)

src/Builder/JsonOverlapsBuilder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
use Yiisoft\Db\Exception\NotSupportedException;
1111
use Yiisoft\Db\Expression\ExpressionBuilderInterface;
1212
use Yiisoft\Db\Expression\ExpressionInterface;
13-
use Yiisoft\Db\Expression\Value\JsonExpression;
13+
use Yiisoft\Db\Expression\Value\JsonValue;
1414
use Yiisoft\Db\QueryBuilder\Condition\JsonOverlaps;
1515
use Yiisoft\Db\QueryBuilder\QueryBuilderInterface;
1616

@@ -44,7 +44,7 @@ public function build(ExpressionInterface $expression, array &$params = []): str
4444

4545
$values = $expression->values;
4646
if (!$values instanceof ExpressionInterface) {
47-
$values = new JsonExpression($values);
47+
$values = new JsonValue($values);
4848
}
4949
$values = $this->queryBuilder->buildExpression($values, $params);
5050

tests/QueryBuilderTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
use PHPUnit\Framework\Attributes\DataProviderExternal;
99
use Yiisoft\Db\Constant\DataType;
1010
use Yiisoft\Db\Exception\NotSupportedException;
11-
use Yiisoft\Db\Expression\Value\ArrayExpression;
11+
use Yiisoft\Db\Expression\Value\ArrayValue;
1212
use Yiisoft\Db\Expression\Statement\CaseX;
1313
use Yiisoft\Db\Expression\Expression;
1414
use Yiisoft\Db\Expression\ExpressionInterface;
@@ -772,7 +772,7 @@ public function testArrayMergeWithOrdering(): void
772772
"'[2,1,3]'",
773773
[6, 5, 7],
774774
$stringParam,
775-
self::getDb()->select(new ArrayExpression([10, 9])),
775+
self::getDb()->select(new ArrayValue([10, 9])),
776776
))->ordered();
777777
$params = [];
778778

0 commit comments

Comments
 (0)