mirror of
https://github.com/launchbadge/sqlx.git
synced 2025-12-29 21:00:54 +00:00
fix: mark blocking invocations of flush! as @blocking
This commit is contained in:
parent
ce44599db5
commit
7395543e22
@ -77,7 +77,7 @@ impl<Rt: Runtime> PgConnection<Rt> {
|
||||
Rt: sqlx_core::blocking::Runtime,
|
||||
E: Execute<'q, 'a, Postgres>,
|
||||
{
|
||||
flush!(self);
|
||||
flush!(@blocking self);
|
||||
impl_execute!(@blocking self, query)
|
||||
}
|
||||
}
|
||||
|
||||
@ -83,7 +83,7 @@ impl<Rt: Runtime> PgConnection<Rt> {
|
||||
Rt: sqlx_core::blocking::Runtime,
|
||||
E: Execute<'q, 'a, Postgres>,
|
||||
{
|
||||
flush!(self);
|
||||
flush!(@blocking self);
|
||||
impl_fetch_all!(@blocking self, query)
|
||||
}
|
||||
}
|
||||
|
||||
@ -91,7 +91,7 @@ impl<Rt: Runtime> PgConnection<Rt> {
|
||||
Rt: sqlx_core::blocking::Runtime,
|
||||
E: Execute<'q, 'a, Postgres>,
|
||||
{
|
||||
flush!(self);
|
||||
flush!(@blocking self);
|
||||
impl_fetch_optional!(@blocking self, query)
|
||||
}
|
||||
}
|
||||
|
||||
@ -26,7 +26,7 @@ mod tests {
|
||||
let mut buf = Vec::new();
|
||||
Terminate.serialize(&mut buf)?;
|
||||
|
||||
assert_eq!(&buf, &[b'X']);
|
||||
assert_eq!(&buf, &[b'X', 0, 0, 0, 4]);
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user