Commit 3a3d1e28 authored by monty@hundin.mysql.fi's avatar monty@hundin.mysql.fi

Fix test that all merge tables comes from same database

parent 7f8f1bd9
...@@ -2183,7 +2183,7 @@ static bool check_merge_table_access(THD *thd, char *db, ...@@ -2183,7 +2183,7 @@ static bool check_merge_table_access(THD *thd, char *db,
{ {
if (!tmp->db || !tmp->db[0]) if (!tmp->db || !tmp->db[0])
tmp->db=db; tmp->db=db;
else if (!strcmp(tmp->db,db)) else if (strcmp(tmp->db,db))
{ {
send_error(&thd->net,ER_UNION_TABLES_IN_DIFFERENT_DIR); send_error(&thd->net,ER_UNION_TABLES_IN_DIFFERENT_DIR);
return 1; return 1;
......
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