From 0c50208e4fec07e5ebe675eda9b08c33bda6eb17 Mon Sep 17 00:00:00 2001 From: Graham McIntire Date: Fri, 17 Apr 2026 13:08:20 -0500 Subject: [PATCH] fix: use string interpolation for SET statement_timeout instead of parameterized query --- lib/aprsme/release.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/aprsme/release.ex b/lib/aprsme/release.ex index 0f82d66..5cd4ad7 100644 --- a/lib/aprsme/release.ex +++ b/lib/aprsme/release.ex @@ -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