From d929342b0f8d5a85aac4e76486b0ff2aff7ca54f Mon Sep 17 00:00:00 2001 From: Sergei Golubchik Date: Sun, 2 Feb 2014 10:00:36 +0100 Subject: Merge the server part of MySQL WL#5522 - InnoDB transportable tablespaces. Syntax. Server support. Test cases. InnoDB bugfixes: * don't mess around with system sprintf's, always use my_error() for errors. * don't use InnoDB internal error codes where OS error codes are expected. * don't say "file not found", when it was. --- sql/sql_parse.cc | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'sql/sql_parse.cc') diff --git a/sql/sql_parse.cc b/sql/sql_parse.cc index f9bfa6d120b..ec4e873f8ec 100644 --- a/sql/sql_parse.cc +++ b/sql/sql_parse.cc @@ -4232,6 +4232,17 @@ end_with_restore_list: my_ok(thd); break; } + else if (first_table && lex->type & REFRESH_FOR_EXPORT) + { + /* Check table-level privileges. */ + if (check_table_access(thd, LOCK_TABLES_ACL | SELECT_ACL, all_tables, + FALSE, UINT_MAX, FALSE)) + goto error; + if (flush_tables_for_export(thd, all_tables)) + goto error; + my_ok(thd); + break; + } /* reload_acl_and_cache() will tell us if we are allowed to write to the -- cgit v1.2.1