From 2cbc8d54a610aa132fe0ab872d9c074348b176af Mon Sep 17 00:00:00 2001 From: Stuart Jackson <66499666+simpleapps-io@users.noreply.github.com> Date: Sun, 18 Jul 2021 09:28:14 -0700 Subject: [PATCH] Change minimum SQL server to version 11 from 12 SQL Driver version 5.9 supports version 11+. SQL server 2012 is version 11 https://docs.microsoft.com/en-us/sql/connect/php/microsoft-php-drivers-for-sql-server-support-matrix?view=sql-server-ver15 --- src/Driver/SQLServer/SQLServerDriver.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Driver/SQLServer/SQLServerDriver.php b/src/Driver/SQLServer/SQLServerDriver.php index 0abb53c0..9cd1b496 100644 --- a/src/Driver/SQLServer/SQLServerDriver.php +++ b/src/Driver/SQLServer/SQLServerDriver.php @@ -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'); } }