[MDEV-27057] Cleanup: AUTHID is abused by being used as a struct Created: 2021-11-16  Updated: 2021-11-16

Status: Open
Project: MariaDB Server
Component/s: None
Fix Version/s: None

Type: Task Priority: Major
Reporter: Vicențiu Ciorbaru Assignee: Vicențiu Ciorbaru
Resolution: Unresolved Votes: 0
Labels: None


 Description   

There is different logic (getters, setters) related to AUTHID spread around sql_class.h, sp.h, etc. as well as within the AUTHID class member functions as well.

See: set_invoker, get_definer in sql_class.h.

There is no constructor defined for AUTHID and it is possible to bring it into an inconsistent state. Refactor this code to make AUTHID self contained have code use it with its presented interface only.


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