Skip to content

Commit

Permalink
Tweaked per review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
david-puglielli committed Jul 23, 2018
1 parent f71c52d commit efde09f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion test/functional/pdo_sqlsrv/skipif_version_less_than_2k14.inc
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,12 @@ $msodbcsql_maj = explode(".", $msodbcsql_ver)[0];
$msodbcsql_min = explode(".", $msodbcsql_ver)[1];

if (!$is_win) {
if ($msodbcsql_maj < 17 or $msodbcsql_min < 2) {
if ($msodbcsql_maj < 17) {
die("skip Unsupported ODBC driver version");
} else {
if ($msodbcsql_maj==17 && $msodbcsql_min < 2) {
die("skip Unsupported ODBC driver version");
}
}
} else {
if ($msodbcsql_maj < 17) {
Expand Down
6 changes: 5 additions & 1 deletion test/functional/sqlsrv/skipif_version_less_than_2k14.inc
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,12 @@ $msodbcsql_maj = explode(".", $msodbcsql_ver)[0];
$msodbcsql_min = explode(".", $msodbcsql_ver)[1];

if (!$is_win) {
if ($msodbcsql_maj < 17 or $msodbcsql_min < 2) {
if ($msodbcsql_maj < 17) {
die("skip Unsupported ODBC driver version");
} else {
if ($msodbcsql_maj==17 && $msodbcsql_min < 2) {
die("skip Unsupported ODBC driver version");
}
}
} else {
if ($msodbcsql_maj < 17) {
Expand Down

0 comments on commit efde09f

Please sign in to comment.