http_private: do less separate queries when calling stored procedure

This commit is contained in:
Joakim Frostegård 2022-04-04 10:47:49 +02:00
parent b604bd4b0a
commit 4d7ea257b8

View file

@ -62,9 +62,15 @@ async fn call_announce_procedure(
let mut t = pool.begin().await?; let mut t = pool.begin().await?;
t.execute("SET @p_announce_allowed = false;").await?; t.execute(
t.execute("SET @p_failure_reason = NULL;").await?; "
t.execute("SET @p_warning_message = NULL;").await?; SET
@p_announce_allowed = false,
@p_failure_reason = NULL,
@p_warning_message = NULL;
",
)
.await?;
let q = sqlx::query( let q = sqlx::query(
" "