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

Always encrypted unicode data corruption guard #2289

Draft
wants to merge 13 commits into
base: main
Choose a base branch
from
Draft

Conversation

tkyc
Copy link
Contributor

@tkyc tkyc commented Jan 6, 2024

When the following is true and when Always Encrypted is used:

  • sendStringParametersAsUnicode=true
  • Inserting a string against a non-unicode column
  • UTF-8 collation is used
  • Server version is >= 15

The driver will safely insert the string into the non-unicode column. In all other cases, the driver will throw an error indicating a potential data loss if the insert is to be followed through.

@lilgreenbird lilgreenbird marked this pull request as draft February 21, 2024 23:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In progress
Development

Successfully merging this pull request may close these issues.

1 participant