mirror of
https://github.com/launchbadge/sqlx.git
synced 2025-12-24 17:19:01 +00:00
Remove incorrect CAST in test database cleanup for MySQL. (#2599)
* Remove incorrect CAST in test daatbase cleanup for MySQL. * Not sure how this ever really worked.
This commit is contained in:
parent
3db16751a0
commit
aee0e18b0b
@ -178,7 +178,7 @@ async fn test_context(args: &TestArgs) -> Result<TestContext<MySql>, Error> {
|
||||
async fn do_cleanup(conn: &mut MySqlConnection, created_before: Duration) -> Result<usize, Error> {
|
||||
let delete_db_ids: Vec<u64> = query_scalar(
|
||||
"select db_id from _sqlx_test_databases \
|
||||
where created_at < (cast(from_unixtime($1) as timestamp))",
|
||||
where created_at < from_unixtime(?)",
|
||||
)
|
||||
.bind(&created_before.as_secs())
|
||||
.fetch_all(&mut *conn)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user