Skip to content

Commit 0b2fd01

Browse files
MDEV-32485 Fix Spider upgrade failure caused by duplication in mysql.func
1 parent 15a1168 commit 0b2fd01

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

storage/spider/spd_init_query.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -657,7 +657,7 @@ static LEX_STRING spider_init_queries[] = {
657657
"if @win_plugin = 0 then"
658658
" begin not atomic"
659659
" declare exit handler for 1041, 1123"
660-
" insert into mysql.func values"
660+
" replace into mysql.func values"
661661
" ('spider_direct_sql', 2, 'ha_spider.so', 'function'),"
662662
" ('spider_bg_direct_sql', 2, 'ha_spider.so', 'aggregate'),"
663663
" ('spider_ping_table', 2, 'ha_spider.so', 'function'),"
@@ -677,7 +677,7 @@ static LEX_STRING spider_init_queries[] = {
677677
"else"
678678
" begin not atomic"
679679
" declare exit handler for 1041, 1123"
680-
" insert into mysql.func values"
680+
" replace into mysql.func values"
681681
" ('spider_direct_sql', 2, 'ha_spider.dll', 'function'),"
682682
" ('spider_bg_direct_sql', 2, 'ha_spider.dll', 'aggregate'),"
683683
" ('spider_ping_table', 2, 'ha_spider.dll', 'function'),"

0 commit comments

Comments
 (0)