[MCOL-4127] install_mcs_mysql.sh use CREATE FUNCTION Created: 2020-06-30  Updated: 2021-05-06  Resolved: 2021-05-06

Status: Closed
Project: MariaDB ColumnStore
Component/s: installation
Affects Version/s: None
Fix Version/s: 5.6.1

Type: Bug Priority: Minor
Reporter: Daniel Black Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Duplicate
is duplicated by MCOL-4681 Fix install_mcs_mysql.sh.in to do CRE... Closed
PartOf
is part of MCOL-4134 Clean and fix remaining columnstore c... Closed
Relates
relates to MCOL-3836 Columnstore OAM replacement Closed

 Description   

Rather than crude inserts directly into mysq.func table:

current impelemntation

 

INSERT INTO mysql.func VALUES ('calgetstats',0,'ha_columnstore.so','function');
INSERT INTO mysql.func VALUES ('calsettrace',2,'ha_columnstore.so','function');
INSERT INTO mysql.func VALUES ('calsetparms',0,'ha_columnstore.so','function');
INSERT INTO mysql.func VALUES ('calflushcache',2,'ha_columnstore.so','function');

{nformat}

Use the CREATE FUNCTION OR REPLACE function for UDFs.

Use [DROP FUNCTION](https://mariadb.com/kb/en/drop-function-udf/) to remove previous functions that are no longer used.



 Comments   
Comment by Roman [ 2020-07-13 ]

Very good point.

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