Skip to content

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

Merged
phoebus-84 merged 1 commit intomasterfrom
fix_geosearch
Apr 13, 2026
Merged

fix: cast Decimal to float for Haversine geo search query#65
phoebus-84 merged 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.
@phoebus-84 phoebus-84 merged commit f972d2a into master Apr 13, 2026
1 check failed
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