mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-04-02 10:45:30 +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?;
|
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(
|
||||||
"
|
"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue