mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03:00
Allow one to use MERGE tables with tables from different databases
Added command 'replace_column' to mysqltest client/mysqltest.c: Added user command replace_column mysql-test/r/merge.result: Update of tests mysql-test/t/innodb.test: User replace_column to make tests repeatable mysql-test/t/merge.test: New tests for testing MERGE tables with multiple databases scripts/mysql_create_system_tables.sh: Fixed syntax error sql/ha_myisammrg.cc: Allow one to use MERGE tables with tables from different databases sql/mysql_priv.h: Added function sql/sql_parse.cc: Allow one to use MERGE tables with tables from different databases sql/sql_show.cc: Extended append_identifier()
This commit is contained in:
@@ -3388,11 +3388,6 @@ 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))
|
||||
{
|
||||
send_error(thd,ER_UNION_TABLES_IN_DIFFERENT_DIR);
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
error=check_table_access(thd, SELECT_ACL | UPDATE_ACL | DELETE_ACL,
|
||||
table_list);
|
||||
@@ -4425,6 +4420,7 @@ static bool append_file_to_dir(THD *thd, char **filename_ptr, char *table_name)
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
Check if the select is a simple select (not an union)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user