summaryrefslogtreecommitdiffstats
path: root/storage/spider/spd_init_query.h
diff options
context:
space:
mode:
Diffstat (limited to 'storage/spider/spd_init_query.h')
-rw-r--r--storage/spider/spd_init_query.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/storage/spider/spd_init_query.h b/storage/spider/spd_init_query.h
index fdf6b22f..35a250c7 100644
--- a/storage/spider/spd_init_query.h
+++ b/storage/spider/spd_init_query.h
@@ -21,6 +21,9 @@
static LEX_STRING spider_init_queries[] = {
{C_STRING_WITH_LEN(
+ "SET @@SQL_MODE = REPLACE(@@SQL_MODE, 'ORACLE', '');"
+ )},
+ {C_STRING_WITH_LEN(
"create table if not exists mysql.spider_xa("
" format_id int not null default 0,"
" gtrid_length int not null default 0,"
@@ -694,6 +697,46 @@ static LEX_STRING spider_init_queries[] = {
" algorithm=copy, lock=shared;"
)},
{C_STRING_WITH_LEN(
+ "alter table mysql.spider_link_mon_servers"
+ " add column if not exists filedsn text default null after dsn,"
+ " algorithm=copy, lock=shared;"
+ )},
+ {C_STRING_WITH_LEN(
+ "alter table mysql.spider_tables"
+ " add column if not exists filedsn text default null after dsn,"
+ " algorithm=copy, lock=shared;"
+ )},
+ {C_STRING_WITH_LEN(
+ "alter table mysql.spider_xa_failed_log"
+ " add column if not exists filedsn text default null after dsn,"
+ " algorithm=copy, lock=shared;"
+ )},
+ {C_STRING_WITH_LEN(
+ "alter table mysql.spider_xa_member"
+ " add column if not exists filedsn text default null after dsn,"
+ " algorithm=copy, lock=shared;"
+ )},
+ {C_STRING_WITH_LEN(
+ "alter table mysql.spider_link_mon_servers"
+ " add column if not exists driver char(64) default null after filedsn,"
+ " algorithm=copy, lock=shared;"
+ )},
+ {C_STRING_WITH_LEN(
+ "alter table mysql.spider_tables"
+ " add column if not exists driver char(64) default null after filedsn,"
+ " algorithm=copy, lock=shared;"
+ )},
+ {C_STRING_WITH_LEN(
+ "alter table mysql.spider_xa_failed_log"
+ " add column if not exists driver char(64) default null after filedsn,"
+ " algorithm=copy, lock=shared;"
+ )},
+ {C_STRING_WITH_LEN(
+ "alter table mysql.spider_xa_member"
+ " add column if not exists driver char(64) default null after filedsn,"
+ " algorithm=copy, lock=shared;"
+ )},
+ {C_STRING_WITH_LEN(
"set @win_plugin := IF(@@version_compile_os like 'Win%', 1, 0);"
)},
/* Install UDFs. If udf is not initialised, then install by