-
Notifications
You must be signed in to change notification settings - Fork 268
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
Postgrex.Result command field as a list #546
Comments
Can you please provide an example of a query that is returning the above? The atom |
I could isolate to the error to multi transaction rolling back. In the test that triggers the behavior, it is trying to update a existing record with a invalid reference id. changeset = FinancialEntry.changeset(financial_entry, %{transaction_id: Ecto.UUID.generate()})
Ecto.Multi.new()
|> Ecto.Multi.update(:update, changeset)
|> MyApp.Repo.transaction() These are the events that I'm getting in telemetry:
Deps version:
Postgres version:
Elixir version:
|
The documentation says sthat the field
command
ofPostgrex.Result
is a "An atom of the query command, for example::select
or:insert
;". https://github.com/elixir-ecto/postgrex/blob/v0.15.9/lib/postgrex/result.ex#L5However I'm getting a list in this field.
I'm getting this behavior while listening to telemetry events from ecto. I'm using this sending this
command
field to an external metric system.The behavior is correct and we should update the documentation accordlying?
The text was updated successfully, but these errors were encountered: