ecto thinks value is always changing
atomkirk opened this issue · comments
We have a :decimal
field in our schema and ecto changesets always mark it as changing even though its not. I assume this is because ecto is trying to compare the Decimal structs and not seeing them as equal?
That is possible, but hard to say without seeing the values or the code. This is more of an Ecto question than Decimal though.
Well that depends. If, like swift, elixir has something like an equatable protocol that decimal is not using, then its a Decimal question. Otherwise, yeah, ecto needs to provide a way to customize comparing of values for changes and then decimal needs to implement it.
All of it would have to be implemented in Ecto since Decimal does not know about Ecto.
Oh i see. I thought decimal supported ecto, but its ecto that explicitly supports decimal
Please open an issue on Ecto.