Skip to content

Commit

Permalink
Merge pull request #295 from grooverdan/drop_user
Browse files Browse the repository at this point in the history
Use DROP USER in test
  • Loading branch information
blackbeam authored Mar 16, 2024
2 parents 884ef87 + 35e4c24 commit 116fa6d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/conn/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1552,10 +1552,9 @@ mod test {
.map(|x| ((x % (123 - 97)) + 97) as char)
.collect();

conn.query_drop("DELETE FROM mysql.user WHERE user = '__mats'")
conn.query_drop("DROP USER /*!50700 IF EXISTS */ /*M!100103 IF EXISTS */ __mats")
.await
.unwrap();
conn.query_drop("FLUSH PRIVILEGES").await.unwrap();

if conn.inner.is_mariadb || conn.server_version() < (5, 7, 0) {
if matches!(conn.server_version(), (5, 6, _)) {
Expand Down Expand Up @@ -1587,8 +1586,6 @@ mod test {
.unwrap();
};

conn.query_drop("FLUSH PRIVILEGES").await.unwrap();

let mut conn2 = Conn::new(get_opts().secure_auth(false)).await.unwrap();
conn2
.change_user(
Expand Down

0 comments on commit 116fa6d

Please sign in to comment.