diff --git a/sqlx-mysql/src/connection/executor.rs b/sqlx-mysql/src/connection/executor.rs index 2188e182..5aed3e4b 100644 --- a/sqlx-mysql/src/connection/executor.rs +++ b/sqlx-mysql/src/connection/executor.rs @@ -66,29 +66,35 @@ impl Executor for MySqlConnection { #[cfg(feature = "blocking")] impl sqlx_core::blocking::Executor for MySqlConnection { #[inline] - fn execute<'x, 'e, 'q>(&'e mut self, sql: &'q str) -> Result + fn execute<'x, 'e, 'q, 'a, E>(&'e mut self, query: E) -> Result where + E: 'x + Execute<'q, 'a, MySql>, 'e: 'x, 'q: 'x, + 'a: 'x, { - self.execute_blocking(sql) + self.execute_blocking(query) } #[inline] - fn fetch_all<'x, 'e, 'q>(&'e mut self, sql: &'q str) -> Result> + fn fetch_all<'x, 'e, 'q, 'a, E>(&'e mut self, query: E) -> Result> where + E: 'x + Execute<'q, 'a, MySql>, 'e: 'x, 'q: 'x, + 'a: 'x, { - self.fetch_all_blocking(sql) + self.fetch_all_blocking(query) } #[inline] - fn fetch_optional<'x, 'e, 'q>(&'e mut self, sql: &'q str) -> Result> + fn fetch_optional<'x, 'e, 'q, 'a, E>(&'e mut self, query: E) -> Result> where + E: 'x + Execute<'q, 'a, MySql>, 'e: 'x, 'q: 'x, + 'a: 'x, { - self.fetch_optional_blocking(sql) + self.fetch_optional_blocking(query) } }