[MDEV-31401] Allow CREATE FUNCTION to run before udf_init() Created: 2023-06-05  Updated: 2023-12-07

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

Type: Task Priority: Major
Reporter: Yuchen Pei Assignee: Yuchen Pei
Resolution: Unresolved Votes: 0
Labels: UDF

Issue Links:
Relates
relates to MDEV-22979 "mysqld --bootstrap" / mysql_install_... Closed

 Description   

Currently CREATE FUNCTION requires udf_init() to be called first. But one could get around this restriction by inserting a row into the mysql.func table before a call to udf_init(). Make it so a CREATE FUNCTION statement does the insertion when it is executed before the call to udf_init(). This will for example help with early plugin initialisations (by plugin_load_add) that need to run udf creation queries.


Generated at Thu Feb 08 10:23:35 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.