From a6a7b64afc6589ea4394afb75b7511d6b1271a97 Mon Sep 17 00:00:00 2001 From: Tigrov Date: Tue, 22 Aug 2023 08:59:11 +0700 Subject: [PATCH] Fix test issues --- tests/Support/Stub/DMLQueryBuilder.php | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/tests/Support/Stub/DMLQueryBuilder.php b/tests/Support/Stub/DMLQueryBuilder.php index a91c17548..a3b5ebfe4 100644 --- a/tests/Support/Stub/DMLQueryBuilder.php +++ b/tests/Support/Stub/DMLQueryBuilder.php @@ -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.'); + } }