You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add tests for mysql_change_user() with database parameter:
- Test 4: Short password - verifies basic COM_CHANGE_USER works
- Test 5: Long password (260 bytes) - verifies LENENC encoding path
Copy file name to clipboardExpand all lines: mysql-test/suite/plugins/r/mdev38431.result
+19-1Lines changed: 19 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,25 @@ GRANT ALL ON *.* TO verylonguser;
29
29
db
30
30
mdev38431_db
31
31
#
32
+
# Test 4: COM_CHANGE_USER with short password
33
+
# Verify mysql_change_user() works correctly with database parameter
34
+
#
35
+
CREATE USER changeusertest IDENTIFIED VIA cleartext_plugin_server USING 'changepwd';
36
+
GRANT ALL ON *.* TO changeusertest;
37
+
SELECT DATABASE() AS db;
38
+
db
39
+
mdev38431_db
40
+
#
41
+
# Test 5: COM_CHANGE_USER with long password (260 bytes)
42
+
# Verify mysql_change_user() works with LENENC-encoded password
43
+
#
44
+
CREATE USER changeuserlongpwd IDENTIFIED VIA cleartext_plugin_server USING 'cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc';
45
+
GRANT ALL ON *.* TO changeuserlongpwd;
46
+
SELECT DATABASE() AS db;
47
+
db
48
+
mdev38431_db
49
+
#
32
50
# Cleanup
33
51
#
34
-
DROP USER shortuser, longuser, verylonguser;
52
+
DROP USER shortuser, longuser, verylonguser, changeusertest, changeuserlongpwd;
0 commit comments