[MDEV-25537] mysqldump --system=all self deletion protection current user wrong Created: 2021-04-27  Updated: 2023-04-27

Status: Open
Project: MariaDB Server
Component/s: Scripts & Clients
Affects Version/s: None
Fix Version/s: 10.4, 10.5

Type: Bug Priority: Major
Reporter: Daniel Black Assignee: Daniel Black
Resolution: Unresolved Votes: 0
Labels: None


 Description   

DELIMITER |
/*M!100101 IF current_user()="'root'@'localhost'" THEN
  SIGNAL SQLSTATE '45000' SET MYSQL_ERRNO=30001, MESSAGE_TEXT="Don't remove current user 'root'@'localhost''";
END IF */|

This isn't quite right, the quoting in the string literal quoting is too much. current_user is just 'root@localhost' rather than the quoted form.


Generated at Thu Feb 08 09:38:27 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.