Skip to content

fix(geo): support case insensitive units #4264

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
Dec 5, 2024
Merged

fix(geo): support case insensitive units #4264

merged 1 commit into from
Dec 5, 2024

Conversation

andydunstall
Copy link
Contributor

Most GEO commands don't seem to support case insensitive units, so seemed simplest to move AsciiStrToUpper into ExtractUnit

Such as GEOSEARCH Sicily FROMLONLAT 15 37 BYRADIUS 200 km ASC (copied from redis docs) would return an error (error) ERR unsupported unit provided. please use M, KM, FT, MI

Copy link
Contributor

@kostasrim kostasrim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice and thank you @andydunstall 🚀

@kostasrim
Copy link
Contributor

p.s. I will split the geo commands to a different file at some point :)

@andydunstall andydunstall merged commit 63ccbbc into dragonflydb:main Dec 5, 2024
9 checks passed
@romange
Copy link
Collaborator

romange commented Dec 5, 2024 via email

@kostasrim
Copy link
Contributor

Is it based on an issue?

no no, Andy found it and he raised a PR

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