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,
|
||||
fn repo ->
|
||||
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)
|
||||
end,
|
||||
timeout: timeout
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue