Skip to content

Commit 26c29bb

Browse files
committed
bugfix
1 parent 8a46c4b commit 26c29bb

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

tests/SqlServerTest.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,13 @@ public function disconnect($db)
4444
*/
4545
public function checkVersion($db)
4646
{
47-
$major = 5;
48-
$minor = 5;
47+
$major = 11;
48+
$minor = 0;
49+
$build = 3000;
4950
$version = sqlsrv_server_info($db);
5051
$v = explode('.',$version['SQLServerVersion']);
51-
if ($v[0]<$major || ($v[0]==$major && $v[1]<$minor)) {
52-
die("Detected MySQL $v[0].$v[1], but only $major.$minor and up are supported\n");
52+
if ($v[0]<$major || ($v[0]==$major && $v[1]<$minor) || ($v[0]==$major && $v[1]==$minor && $v[2]<$build)) {
53+
die("Detected MySQL $v[0].$v[1].$v[2], but only $major.$minor.$build and up are supported\n");
5354
}
5455
}
5556

0 commit comments

Comments
 (0)