mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
MDEV-32462: mysql_upgrade -s still checks for non system tables
- Prevent opening of any user tables in case `upgrade-system-table` option is used. - Still there may be uninstalled data types in `mysql` system table so allow it to perform. - Closes PR #2790 - Reviewer: <daniel@mariadb.org>, <vicentiu@mariadb.org>
This commit is contained in:
@@ -1155,6 +1155,8 @@ static int install_used_plugin_data_types(void)
|
||||
DYNAMIC_STRING ds_result;
|
||||
const char *query = "SELECT table_comment FROM information_schema.tables"
|
||||
" WHERE table_comment LIKE 'Unknown data type: %'";
|
||||
if (opt_systables_only)
|
||||
return 0;
|
||||
if (init_dynamic_string(&ds_result, "", 512, 512))
|
||||
die("Out of memory");
|
||||
run_query(query, &ds_result, TRUE);
|
||||
|
Reference in New Issue
Block a user