Skip to content

mongo 6: fix issue on collections with '.' #147

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 1 commit into from
Jun 25, 2023

Conversation

pierreMizrahi
Copy link
Contributor

Collection names are allowed to have a '.' in their name, db names aren't (see
https://www.mongodb.com/docs/manual/reference/limits/#naming-restrictions)

This codes changes the logic to extract the collection name form a FullConnecton string by stripping until the first dot, and provides a test case.

Fixes #146

Collection names are allowed to have a '.' in their name, db
names aren't (see
https://www.mongodb.com/docs/manual/reference/limits/#naming-restrictions)

This codes changes the logic to extract the collection
name form a FullConnecton string by stripping until the first
dot, and provides a test case.
@pierreMizrahi
Copy link
Contributor Author

@VictorDenisov can you please consider this PR ? thanks !

@VictorDenisov
Copy link
Member

Yep. Give me a couple weeks.

@pierreMizrahi
Copy link
Contributor Author

@VictorDenisov can you please take a quick look ?

@VictorDenisov
Copy link
Member

I'm back. Will be reviewing PRs.

@VictorDenisov VictorDenisov merged commit 4a46964 into mongodb-haskell:master Jun 25, 2023
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.

mongo 6: cannot request a collection with a dot (".") in its name
2 participants