mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Merge branch '11.0' into 11.1
This commit is contained in:
@@ -1531,10 +1531,13 @@ int spider_db_mbase_result::fetch_index_for_discover_table_structure(
|
||||
}
|
||||
DBUG_RETURN(0);
|
||||
}
|
||||
if (num_fields() != 13)
|
||||
if (num_fields() < 13)
|
||||
{
|
||||
DBUG_PRINT("info",("spider num_fields != 13"));
|
||||
my_printf_error(ER_SPIDER_UNKNOWN_NUM, ER_SPIDER_UNKNOWN_STR, MYF(0));
|
||||
DBUG_PRINT("info",("spider num_fields < 13"));
|
||||
my_printf_error(ER_SPIDER_CANT_NUM, ER_SPIDER_CANT_STR1, MYF(0),
|
||||
"fetch index for table structure discovery because of "
|
||||
"wrong number of columns in SHOW INDEX FROM output: ",
|
||||
num_fields());
|
||||
DBUG_RETURN(ER_SPIDER_UNKNOWN_NUM);
|
||||
}
|
||||
bool first = TRUE;
|
||||
@@ -1931,7 +1934,7 @@ int spider_db_mbase::connect(
|
||||
|
||||
if (!spider_param_same_server_link(thd))
|
||||
{
|
||||
if (!strcmp(tgt_host, my_localhost))
|
||||
if (!strcmp(tgt_host, my_localhost) || !tgt_host || !tgt_host[0])
|
||||
{
|
||||
if (!strcmp(tgt_socket, *spd_mysqld_unix_port))
|
||||
{
|
||||
@@ -1941,7 +1944,7 @@ int spider_db_mbase::connect(
|
||||
DBUG_RETURN(ER_SPIDER_SAME_SERVER_LINK_NUM);
|
||||
}
|
||||
} else if (!strcmp(tgt_host, "127.0.0.1") ||
|
||||
!strcmp(tgt_host, glob_hostname))
|
||||
!strcmp(tgt_host, glob_hostname) || !tgt_host || !tgt_host[0])
|
||||
{
|
||||
if (tgt_port == (long) *spd_mysqld_port)
|
||||
{
|
||||
|
Reference in New Issue
Block a user