Skip to content

CDRIVER-4610 add separate min/max setters #1241

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

Merged
merged 2 commits into from
Apr 20, 2023
Merged

Conversation

kevinAlbs
Copy link
Collaborator

Summary

  • Replace mongoc_client_encryption_encrypt_range_opts_set_min_max with mongoc_client_encryption_encrypt_range_opts_set_min and mongoc_client_encryption_encrypt_range_opts_set_max.

Verified with this patch build: https://spruce.mongodb.com/version/64400ea6c9ec44a4c343f75e

Background & Motivation

There is no reason to include min and max in the same setter. libmongocrypt is expected to validate constraints on options. This has the benefit of not requiring driver changes if libmongocrypt relaxes constraints in the future.

@kevinAlbs kevinAlbs marked this pull request as ready for review April 19, 2023 16:43
@kevinAlbs kevinAlbs requested review from eramongodb and jmikola April 19, 2023 16:44
@kevinAlbs
Copy link
Collaborator Author

Filed CXX-2681 for C++ driver changes.
Assuming PHPC-2197 will account for PHP driver changes.

@kevinAlbs kevinAlbs merged commit 11e31e3 into mongodb:master Apr 20, 2023
@jmikola
Copy link
Member

jmikola commented Apr 20, 2023

Assuming PHPC-2197 will account for PHP driver changes.

Yup, no need for a new PHPC ticket. I'll link the existing ticket up with CDRIVER-4610.

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.

3 participants