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

Made changes to output param handling code to convert doubles to ints, if necessary #761

Merged
merged 6 commits into from
May 8, 2018

Conversation

yitam
Copy link
Contributor

@yitam yitam commented Apr 26, 2018

Related to #707


This change is Reviewable

@coveralls
Copy link

coveralls commented Apr 26, 2018

Coverage Status

Coverage decreased (-0.1%) to 73.105% when pulling 06e9297 on yitam:vso2823 into f4436d0 on Microsoft:dev.

@codecov-io
Copy link

codecov-io commented Apr 26, 2018

Codecov Report

Merging #761 into dev will increase coverage by 0.26%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##              dev     #761      +/-   ##
==========================================
+ Coverage   78.85%   79.12%   +0.26%     
==========================================
  Files          25       25              
  Lines        7157     7175      +18     
==========================================
+ Hits         5644     5677      +33     
+ Misses       1513     1498      -15
Impacted Files Coverage Δ
...x86/php-7.1.17-src/ext/sqlsrv/shared/core_stmt.cpp 83.15% <0%> (-0.66%) ⬇️
...x86/php-7.1.17-src/ext/sqlsrv/shared/core_sqlsrv.h 83.84% <0%> (+0.18%) ⬆️
...c14/x86/php-7.1.17-src/ext/pdo_sqlsrv/pdo_stmt.cpp 86.05% <0%> (+0.47%) ⬆️
...php-7.1.17-src/ext/pdo_sqlsrv/shared/core_stmt.cpp 66.48% <0%> (+1.42%) ⬆️
...php-7.1.17-src/ext/pdo_sqlsrv/shared/core_sqlsrv.h 81.81% <0%> (+1.67%) ⬆️
...php-7.1.17-src/ext/pdo_sqlsrv/shared/core_conn.cpp 88.02% <0%> (+1.76%) ⬆️

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 f4436d0...06e9297. Read the comment docs.

@@ -406,8 +406,8 @@ pdo_error PDO_ERRORS[] = {
{ IMSSP, (SQLCHAR*) "Stored Procedures do not support text, ntext or image as OUTPUT parameters.", -83, false }
},
{
SQLSRV_ERROR_ENCRYPTED_STREAM_FETCH,
{ IMSSP, (SQLCHAR*) "Connection with Column Encryption enabled does not support fetching stream. Please fetch the data as a string.", -84, false }
Copy link
Contributor

Choose a reason for hiding this comment

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

This error is not needed anymore?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, it's an obsolete error message that is no longer needed

// a long integer first to take care of rounding
convert_to_long(value_z);
if (output_param->is_bool) {
convert_to_boolean(value_z);
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this mean that if the value as a double is 0.1, the corresponding boolean is false?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes

@yitam yitam merged commit 5a842c9 into microsoft:dev May 8, 2018
@yitam yitam deleted the vso2823 branch May 8, 2018 20:13
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