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

fix handling decimal type with no decimal with always encrypted #544

Merged
merged 4 commits into from
Sep 25, 2017

Conversation

yukiwongky
Copy link
Contributor

No description provided.

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 36fef13 on v-kaywon:changeUTC into ** on Microsoft:dev**.

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling e612621 on v-kaywon:changeUTC into ** on Microsoft:dev**.

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.

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 )
Copy link
Contributor

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?

Copy link
Contributor Author

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)

@coveralls
Copy link

coveralls commented Sep 21, 2017

Coverage Status

Changes Unknown when pulling d72504b on v-kaywon:changeUTC into ** on Microsoft:dev**.

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.

Please rename isCompat to compatible / isCompatible

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 0d5bd24 on v-kaywon:changeUTC into ** on Microsoft:dev**.

@yukiwongky yukiwongky merged commit 14c2af2 into microsoft:dev Sep 25, 2017
@yukiwongky yukiwongky deleted the changeUTC branch January 15, 2018 20:41
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.

5 participants