-
Notifications
You must be signed in to change notification settings - Fork 376
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
Conversation
Codecov Report
@@ 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
Continue to review full report at Codecov.
|
@@ -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 } |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes
Related to #707
This change is