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

This commit is contained in:
Yuchen Pei 2023-10-17 15:02:12 +11:00
parent 15a1168b36
commit 0b2fd01ed0
No known key found for this signature in database
GPG Key ID: 3DD1B35105743563

View File

@ -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'),"