We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a46c4b commit 26c29bbCopy full SHA for 26c29bb
tests/SqlServerTest.php
@@ -44,12 +44,13 @@ public function disconnect($db)
44
*/
45
public function checkVersion($db)
46
{
47
- $major = 5;
48
- $minor = 5;
+ $major = 11;
+ $minor = 0;
49
+ $build = 3000;
50
$version = sqlsrv_server_info($db);
51
$v = explode('.',$version['SQLServerVersion']);
- 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");
+ 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");
54
}
55
56
0 commit comments