From 0b2fd01ed0bf8c9eef1e90ed375a297e02c5478b Mon Sep 17 00:00:00 2001 From: Yuchen Pei Date: Tue, 17 Oct 2023 15:02:12 +1100 Subject: [PATCH] MDEV-32485 Fix Spider upgrade failure caused by duplication in mysql.func --- storage/spider/spd_init_query.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/storage/spider/spd_init_query.h b/storage/spider/spd_init_query.h index a322b73708d..001268164d5 100644 --- a/storage/spider/spd_init_query.h +++ b/storage/spider/spd_init_query.h @@ -657,7 +657,7 @@ static LEX_STRING spider_init_queries[] = { "if @win_plugin = 0 then" " begin not atomic" " declare exit handler for 1041, 1123" - " insert into mysql.func values" + " replace into mysql.func values" " ('spider_direct_sql', 2, 'ha_spider.so', 'function')," " ('spider_bg_direct_sql', 2, 'ha_spider.so', 'aggregate')," " ('spider_ping_table', 2, 'ha_spider.so', 'function')," @@ -677,7 +677,7 @@ static LEX_STRING spider_init_queries[] = { "else" " begin not atomic" " declare exit handler for 1041, 1123" - " insert into mysql.func values" + " replace into mysql.func values" " ('spider_direct_sql', 2, 'ha_spider.dll', 'function')," " ('spider_bg_direct_sql', 2, 'ha_spider.dll', 'aggregate')," " ('spider_ping_table', 2, 'ha_spider.dll', 'function'),"