fix: use string interpolation for SET statement_timeout instead of parameterized query

This commit is contained in:
Graham McIntire 2026-04-17 13:08:20 -05:00
parent 70902559ae
commit 0c50208e4f
No known key found for this signature in database
GPG key ID: F4ABF488E6029E59

View file

@ -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