mirror of
https://github.com/launchbadge/sqlx.git
synced 2026-03-22 18:14:11 +00:00
fix: mark blocking invocations of flush! as @blocking
This commit is contained in:
@@ -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(())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user