We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3db1675 commit aee0e18Copy full SHA for aee0e18
sqlx-mysql/src/testing/mod.rs
@@ -178,7 +178,7 @@ async fn test_context(args: &TestArgs) -> Result<TestContext<MySql>, Error> {
178
async fn do_cleanup(conn: &mut MySqlConnection, created_before: Duration) -> Result<usize, Error> {
179
let delete_db_ids: Vec<u64> = query_scalar(
180
"select db_id from _sqlx_test_databases \
181
- where created_at < (cast(from_unixtime($1) as timestamp))",
+ where created_at < from_unixtime(?)",
182
)
183
.bind(&created_before.as_secs())
184
.fetch_all(&mut *conn)
0 commit comments