fix: use string interpolation for SET statement_timeout instead of parameterized query
This commit is contained in:
parent
70902559ae
commit
0c50208e4f
1 changed files with 1 additions and 1 deletions
|
|
@ -158,7 +158,7 @@ defmodule Aprsme.Release do
|
||||||
Aprsme.Repo,
|
Aprsme.Repo,
|
||||||
fn repo ->
|
fn repo ->
|
||||||
timeout_seconds = div(timeout, 1000)
|
timeout_seconds = div(timeout, 1000)
|
||||||
SQL.query!(repo, "SET statement_timeout = $1", ["#{timeout_seconds}s"])
|
SQL.query!(repo, "SET statement_timeout = '#{timeout_seconds}s'", [])
|
||||||
Ecto.Migrator.run(repo, :up, all: true)
|
Ecto.Migrator.run(repo, :up, all: true)
|
||||||
end,
|
end,
|
||||||
timeout: timeout
|
timeout: timeout
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue