Skip to content
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

Issue with inserting points #254

Open
byronpc opened this issue Jun 19, 2019 · 1 comment
Open

Issue with inserting points #254

byronpc opened this issue Jun 19, 2019 · 1 comment

Comments

@byronpc
Copy link

byronpc commented Jun 19, 2019

I tried executing this code on my local database and while the entry gets inserted, point is always NULL. Any ideas?

point = %Mariaex.Geometry.Point{srid: 0, coordinates: {1, 1}}

:ok = query(~s{INSERT INTO #{table} (id, point) VALUES (?, ?)}, [1, point])

@wojtekmach
Copy link
Contributor

wojtekmach commented Dec 11, 2019

Is your server MariaDB? If so, that's a bug on the server: https://jira.mariadb.org/browse/MDEV-21150. Also, see: elixir-ecto/myxql#91.

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

No branches or pull requests

2 participants