Commit 051a1fa0 authored by Yuchen Pei's avatar Yuchen Pei

MDEV-33777 Spider: Correct checks for show index column numbers

It was updated for 10.6+ in MDEV-7317. Because a lower version spider
node may connect to a higher version data node, we need to change this
for 10.4 and 10.5 as well.
parent 18b93d6e
......@@ -1186,9 +1186,9 @@ int spider_db_mbase_result::fetch_table_cardinality(
if (mode == 1)
{
uint num_fields = this->num_fields();
if (num_fields < 12 || num_fields > 13)
if (num_fields < 12 || num_fields > 14)
{
DBUG_PRINT("info",("spider num_fields < 12 || num_fields > 13"));
DBUG_PRINT("info",("spider num_fields < 12 || num_fields > 14"));
DBUG_RETURN(ER_SPIDER_INVALID_REMOTE_TABLE_INFO_NUM);
}
......
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