-
Notifications
You must be signed in to change notification settings - Fork 373
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
fix handling decimal type with no decimal with always encrypted #544
Conversation
Changes Unknown when pulling 36fef13 on v-kaywon:changeUTC into ** on Microsoft:dev**. |
Changes Unknown when pulling e612621 on v-kaywon:changeUTC into ** on Microsoft:dev**. |
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.
Please add more comments to explain your changes and what the expected error state means in the tests
@@ -48,7 +49,7 @@ foreach ( $dataTypes as $dataType ) { | |||
if ( $compatType == $sqlType ) | |||
$isCompat = true; | |||
} | |||
if ( $isCompat ) | |||
if ( $isCompat && sqlsrv_errors()[0]['SQLSTATE'] == 22018 ) |
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.
Under what conditions would this error occur, if the data types are supposedly compatible?
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.
I've added a comment on this in the test for clarification. This error occurs when the datatypes between sqltype and column datatype is not compatible (i.e., implicit conversion is not allowed in SQL Server)
Changes Unknown when pulling d72504b on v-kaywon:changeUTC into ** on Microsoft:dev**. |
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.
Please rename isCompat to compatible / isCompatible
Changes Unknown when pulling 0d5bd24 on v-kaywon:changeUTC into ** on Microsoft:dev**. |
No description provided.