Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skipif fix #821

Merged
merged 5 commits into from
Jul 27, 2018
Merged

Skipif fix #821

merged 5 commits into from
Jul 27, 2018

Conversation

david-puglielli
Copy link
Contributor

@david-puglielli david-puglielli commented Jul 23, 2018

This change is Reviewable

@coveralls
Copy link

coveralls commented Jul 23, 2018

Coverage Status

Coverage decreased (-0.02%) to 75.132% when pulling 7357a16 on david-puglielli:skipif-fix into bd34cab on Microsoft:dev.

} else {
if ($msodbcsql_maj < 17) {
die("skip Unsupported ODBC driver version");
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggestion: change this to

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

@codecov-io
Copy link

codecov-io commented Jul 23, 2018

Codecov Report

Merging #821 into dev will decrease coverage by 0.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##              dev     #821      +/-   ##
==========================================
- Coverage   80.06%   80.05%   -0.02%     
==========================================
  Files          25       25              
  Lines        7325     7321       -4     
==========================================
- Hits         5865     5861       -4     
  Misses       1460     1460
Impacted Files Coverage Δ
...phpdev/vc14/x86/php-7.1.20-src/ext/sqlsrv/util.cpp 84.37% <0%> (-0.25%) ⬇️
...phpdev/vc14/x86/php-7.1.20-src/ext/sqlsrv/stmt.cpp 87.81% <0%> (-0.02%) ⬇️
...x86/php-7.1.20-src/ext/sqlsrv/shared/core_sqlsrv.h 85.38% <0%> (ø) ⬆️
...php-7.1.20-src/ext/pdo_sqlsrv/shared/core_sqlsrv.h 81.52% <0%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update bd34cab...7357a16. Read the comment docs.

}
}
} else {
if ($msodbcsql_maj < 17) {
die("skip Unsupported ODBC driver version");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is the else clause still necessary?

Copy link
Contributor

@yitam yitam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Upon the passing of the tests

@david-puglielli david-puglielli merged commit c533ffa into microsoft:dev Jul 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants