mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-03-31 17:55:36 +00:00
http_private: do less separate queries when calling stored procedure
This commit is contained in:
parent
b604bd4b0a
commit
4d7ea257b8
1 changed files with 9 additions and 3 deletions
|
|
@ -62,9 +62,15 @@ async fn call_announce_procedure(
|
|||
|
||||
let mut t = pool.begin().await?;
|
||||
|
||||
t.execute("SET @p_announce_allowed = false;").await?;
|
||||
t.execute("SET @p_failure_reason = NULL;").await?;
|
||||
t.execute("SET @p_warning_message = NULL;").await?;
|
||||
t.execute(
|
||||
"
|
||||
SET
|
||||
@p_announce_allowed = false,
|
||||
@p_failure_reason = NULL,
|
||||
@p_warning_message = NULL;
|
||||
",
|
||||
)
|
||||
.await?;
|
||||
|
||||
let q = sqlx::query(
|
||||
"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue