diff options
author | unknown <monty@hundin.mysql.fi> | 2001-09-03 04:48:07 +0300 |
---|---|---|
committer | unknown <monty@hundin.mysql.fi> | 2001-09-03 04:48:07 +0300 |
commit | e6088385c582e5a5c645fe4cf5fcb64d83beb9df (patch) | |
tree | 009a258ad8654716823e17b53d71d78be75332b0 | |
parent | 76ec780f0e731b297a487333c6a297456b6cd0c1 (diff) | |
download | mariadb-git-e6088385c582e5a5c645fe4cf5fcb64d83beb9df.tar.gz |
Fix test that all merge tables comes from same database
-rw-r--r-- | sql/sql_parse.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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; |