Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

Change minimum SQL server to version 11 from 12 #77

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
4 changes: 2 additions & 2 deletions src/Driver/SQLServer/SQLServerDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ public function __construct(array $options)
QueryBuilder::defaultBuilder()
);

if ((int)$this->getPDO()->getAttribute(\PDO::ATTR_SERVER_VERSION) < 12) {
throw new DriverException('SQLServer driver supports only 12+ version of SQLServer');
if ((int)$this->getPDO()->getAttribute(\PDO::ATTR_SERVER_VERSION) < 11) {
throw new DriverException('SQLServer driver supports only 11+ version of SQLServer');
}
}

Expand Down