From 3a3d1e28e5c6966c4e8b740443869f9857a557b3 Mon Sep 17 00:00:00 2001 From: "monty@hundin.mysql.fi" <> Date: Mon, 3 Sep 2001 04:48:07 +0300 Subject: [PATCH] Fix test that all merge tables comes from same database --- sql/sql_parse.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sql/sql_parse.cc b/sql/sql_parse.cc index 816825c8cc1..417484b2ef7 100644 --- a/sql/sql_parse.cc +++ b/sql/sql_parse.cc @@ -2183,7 +2183,7 @@ static bool check_merge_table_access(THD *thd, char *db, { if (!tmp->db || !tmp->db[0]) 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); return 1;