Skip to content

Commit 66463eb

Browse files
authored
Pass options into transaction in explain function (#375)
Closes #374, guaranteeing that timeout is used in transaction
1 parent 2e44830 commit 66463eb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/ecto/adapters/sql.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ defmodule Ecto.Adapters.SQL do
313313
|> Ecto.Multi.run(:rollback, fn _, _ ->
314314
{:error, :forced_rollback}
315315
end)
316-
|> repo.transaction()
316+
|> repo.transaction(opts)
317317
|> case do
318318
{:error, :rollback, :forced_rollback, %{explain: result}} -> result
319319
{:error, :explain, error, _} -> raise error

0 commit comments

Comments
 (0)