elixir-ecto / ecto_sql

SQL-based adapters for Ecto and database migrations
https://hexdocs.pm/ecto_sql
Apache License 2.0
578 stars 312 forks source link

fix: myxql type cast of :integer should be signed integer #609

Closed lejoko closed 6 months ago

lejoko commented 6 months ago

Currently, the myxql adapter of ecto_sql type casts :integer into unsigned. This seems wrong since integers are signed in ecto. It should cast to signed. This PR fixes it.

josevalim commented 6 months ago

:green_heart: :blue_heart: :purple_heart: :yellow_heart: :heart: