Commit 0b2fd01e authored by Yuchen Pei's avatar Yuchen Pei

MDEV-32485 Fix Spider upgrade failure caused by duplication in mysql.func

parent 15a1168b
......@@ -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'),"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment