You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm having issues with performing Repo.update(user, if: :exists) and having {:ok, %User{...}} returned even though the record does not exist and no updates are applied in Cassandra.
As you can see in the adapter prepare_result method, false/applied returning :ok
BTW great job with this package!
I'm having issues with performing Repo.update(user, if: :exists) and having {:ok, %User{...}} returned even though the record does not exist and no updates are applied in Cassandra.
As you can see in the adapter prepare_result method, false/applied returning :ok
cassandra_ecto/lib/cassandra_ecto/adapter.ex
Line 294 in 99c839d
It's also not clear from the update function signature how to return an :error
https://github.com/elixir-ecto/ecto/blob/v2.1.3/lib/ecto/adapter.ex#L172
Basically the changeset values are being applied instead of an :error being returned. Do you have some insight?
The text was updated successfully, but these errors were encountered: