Skip to content

Commit 9259b4b

Browse files
MDEV-32485 Fix Spider upgrade failure caused by duplication in mysql.func
1 parent 30af987 commit 9259b4b

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
@@ -594,7 +594,7 @@ static LEX_STRING spider_init_queries[] = {
594594
"if @win_plugin = 0 then"
595595
" begin not atomic"
596596
" declare exit handler for 1041, 1123"
597-
" insert into mysql.func values"
597+
" replace into mysql.func values"
598598
" ('spider_direct_sql', 2, 'ha_spider.so', 'function'),"
599599
" ('spider_bg_direct_sql', 2, 'ha_spider.so', 'aggregate'),"
600600
" ('spider_ping_table', 2, 'ha_spider.so', 'function'),"
@@ -614,7 +614,7 @@ static LEX_STRING spider_init_queries[] = {
614614
"else"
615615
" begin not atomic"
616616
" declare exit handler for 1041, 1123"
617-
" insert into mysql.func values"
617+
" replace into mysql.func values"
618618
" ('spider_direct_sql', 2, 'ha_spider.dll', 'function'),"
619619
" ('spider_bg_direct_sql', 2, 'ha_spider.dll', 'aggregate'),"
620620
" ('spider_ping_table', 2, 'ha_spider.dll', 'function'),"

0 commit comments

Comments
 (0)