diff --git a/tests/test.rs b/tests/test.rs index d245d31..abe1caa 100644 --- a/tests/test.rs +++ b/tests/test.rs @@ -31,7 +31,7 @@ mod db_mgr { template_pool: &sqlx::PgPool, db_name: &str, ) -> Result<(), sqlx::Error> { - match sqlx::query(r#"CREATE DATABASE $1"#) + match sqlx::query(r#"CREATE DATABASE {}"#) .bind(db_name) .execute(template_pool) .await @@ -69,7 +69,7 @@ mod db_mgr { template_pool: &sqlx::PgPool, db_name: &str, ) -> Result<(), sqlx::Error> { - sqlx::query(r#"DROP DATABASE IF EXISTS $1 WITH (FORCE)"#) + sqlx::query(r#"DROP DATABASE IF EXISTS {} WITH (FORCE)"#) .bind(db_name) .execute(template_pool) .await?;