diff --git a/src/PDO/CommandPDOMssql.php b/src/PDO/CommandPDOMssql.php index ad2f2586c..9a53f6123 100644 --- a/src/PDO/CommandPDOMssql.php +++ b/src/PDO/CommandPDOMssql.php @@ -6,7 +6,7 @@ use PDOException; use Yiisoft\Db\Cache\QueryCache; -use Yiisoft\Db\Command\Command; +use Yiisoft\Db\Command\CommandPDO; use Yiisoft\Db\Connection\ConnectionPDOInterface; use Yiisoft\Db\Exception\ConvertException; use Yiisoft\Db\Exception\Exception; @@ -14,7 +14,7 @@ use function is_array; -final class CommandPDOMssql extends Command +final class CommandPDOMssql extends CommandPDO { public function __construct(private ConnectionPDOInterface $db, QueryCache $queryCache) { @@ -75,10 +75,11 @@ public function prepare(?bool $forRead = null): void } } - protected function getCacheKey(string $rawSql): array + protected function getCacheKey(int $queryMode, string $rawSql): array { return [ __CLASS__, + $queryMode, $this->db->getDriver()->getDsn(), $this->db->getDriver()->getUsername(), $rawSql,