Skip to content

Commit

Permalink
Fix test issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Tigrov committed Aug 22, 2023
1 parent 230859a commit a6a7b64
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions tests/Support/Stub/DMLQueryBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,28 @@

namespace Yiisoft\Db\Tests\Support\Stub;

use Yiisoft\Db\Exception\NotSupportedException;
use Yiisoft\Db\Query\QueryInterface;
use Yiisoft\Db\QueryBuilder\AbstractDMLQueryBuilder;

final class DMLQueryBuilder extends AbstractDMLQueryBuilder
{
public function insertWithReturningPks(string $table, QueryInterface|array $columns, array &$params = []): string
{
throw new NotSupportedException(__METHOD__ . '() is not supported by this DBMS.');
}

public function resetSequence(string $table, int|string|null $value = null): string
{
throw new NotSupportedException(__METHOD__ . '() is not supported by this DBMS.');
}

public function upsert(
string $table,
QueryInterface|array $insertColumns,
bool|array $updateColumns,
array &$params
): string {
throw new NotSupportedException(__METHOD__ . '() is not supported by this DBMS.');
}
}

0 comments on commit a6a7b64

Please sign in to comment.