Skip to content

fix: cast Decimal to float for Haversine geo search query#65

Open
phoebus-84 wants to merge 1 commit intomasterfrom
fix_geosearch
Open

fix: cast Decimal to float for Haversine geo search query#65
phoebus-84 wants to merge 1 commit intomasterfrom
fix_geosearch

Conversation

@phoebus-84
Copy link
Copy Markdown
Collaborator

No description provided.

PostgreSQL radians() expects float arguments. Convert Decimal filter
values with Decimal.to_float/1 and cast decimal columns with ::float8
to prevent Postgrex EncodeError.
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.

1 participant