Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
- Chg #330: Rename `insertWithReturningPks()` to `insertReturningPks()` in `Command` and `DMLQueryBuilder` classes (@Tigrov)
- Enh #336: Provide `yiisoft/db-implementation` virtual package (@vjik)
- Enh #340: Adapt to `Param` refactoring in `yiisoft/db` package (@vjik)
- Enh #341: Adapt to specific condition interfaces removing in `yiisoft/db` package (@vjik)

## 1.3.0 March 21, 2024

Expand Down
8 changes: 4 additions & 4 deletions src/Builder/InConditionBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,22 @@
use Yiisoft\Db\Exception\InvalidConfigException;
use Yiisoft\Db\Exception\NotSupportedException;
use Yiisoft\Db\Expression\ExpressionInterface;
use Yiisoft\Db\QueryBuilder\Condition\Interface\InConditionInterface;
use Yiisoft\Db\QueryBuilder\Condition\InCondition;

use function array_slice;
use function array_unshift;
use function count;
use function is_array;

/**
* Build an object of {@see \Yiisoft\Db\QueryBuilder\Condition\InCondition} into SQL expressions for Oracle Server.
* Build an object of {@see InCondition} into SQL expressions for Oracle Server.
*/
final class InConditionBuilder extends \Yiisoft\Db\QueryBuilder\Condition\Builder\InConditionBuilder
{
/**
* The Method builds the raw SQL from the $expression that won't be additionally escaped or quoted.
*
* @param InConditionInterface $expression The expression to build.
* @param InCondition $expression The expression to build.
* @param array $params The binding parameters.
*
* @throws Exception
Expand Down Expand Up @@ -55,7 +55,7 @@ public function build(ExpressionInterface $expression, array &$params = []): str
*
* @return string|null `null` when split isn't required. Otherwise - built SQL condition.
*/
protected function splitCondition(InConditionInterface $condition, array &$params): string|null
protected function splitCondition(InCondition $condition, array &$params): string|null
{
$operator = $condition->getOperator();
$values = $condition->getValues();
Expand Down
8 changes: 4 additions & 4 deletions src/Builder/LikeConditionBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
namespace Yiisoft\Db\Oracle\Builder;

use Yiisoft\Db\Expression\ExpressionInterface;
use Yiisoft\Db\QueryBuilder\Condition\Interface\LikeConditionInterface;
use Yiisoft\Db\QueryBuilder\Condition\LikeCondition;
use Yiisoft\Db\QueryBuilder\QueryBuilderInterface;
use Yiisoft\Db\Schema\Quoter;

use function substr;

/**
* Build an object of {@see `\Yiisoft\Db\QueryBuilder\Condition\LikeCondition`} into SQL expressions for Oracle Server.
* Build an object of {@see LikeCondition} into SQL expressions for Oracle Server.
*/
final class LikeConditionBuilder extends \Yiisoft\Db\QueryBuilder\Condition\Builder\LikeConditionBuilder
{
Expand Down Expand Up @@ -46,7 +46,7 @@ public function build(ExpressionInterface $expression, array &$params = []): str
return parent::build($expression, $params);
}

protected function prepareColumn(LikeConditionInterface $expression, array &$params): string
protected function prepareColumn(LikeCondition $expression, array &$params): string
{
$column = parent::prepareColumn($expression, $params);

Expand All @@ -59,7 +59,7 @@ protected function prepareColumn(LikeConditionInterface $expression, array &$par

protected function preparePlaceholderName(
string|ExpressionInterface $value,
LikeConditionInterface $expression,
LikeCondition $expression,
?array $escape,
array &$params,
): string {
Expand Down
Loading