1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

cleanup: disconnect before DROP USER

let's always disconnect a user connection before dropping the said user.
MariaDB is traditionally very tolerant to active connections
of the dropped user, which isn't the case for most other databases.

Let's avoid unintentionally spreading incompatible behavior
and disconnect before drop.

Except in cases when the test specifically tests such a behavior.
This commit is contained in:
Sergei Golubchik
2025-06-12 08:05:32 +02:00
committed by Dmitry Shulga
parent bead24b7f3
commit e3d9369774
127 changed files with 226 additions and 68 deletions

View File

@@ -876,6 +876,8 @@ drop table t1,s1;
#
connection master;
disconnect m_normal_1;
disconnect m_normal_2;
drop database s_db;
drop user normal_1@'%';
drop user normal_2@'%';