summaryrefslogtreecommitdiff
path: root/client/mysqlcheck.c
diff options
context:
space:
mode:
authorramil/ram@mysql.com/ramil.myoffice.izhnet.ru <>2007-10-24 22:36:57 +0500
committerramil/ram@mysql.com/ramil.myoffice.izhnet.ru <>2007-10-24 22:36:57 +0500
commitbb79b4662f104c45edd3c61de8ff871a1d834ab1 (patch)
tree99e5d5cd41856902feefa6dca1954627f0d00b3c /client/mysqlcheck.c
parent5a42bb96f86906319ab20247112b31cf8be66fc1 (diff)
downloadmariadb-git-bb79b4662f104c45edd3c61de8ff871a1d834ab1.tar.gz
Fix for bug #30679: 5.1 name encoding not performed for views during upgrade
Problem: we skip views perfoming --fix-table-names. Fix: rename views as well.
Diffstat (limited to 'client/mysqlcheck.c')
-rw-r--r--client/mysqlcheck.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/client/mysqlcheck.c b/client/mysqlcheck.c
index fb2071ce10f..34f09f6ca92 100644
--- a/client/mysqlcheck.c
+++ b/client/mysqlcheck.c
@@ -533,8 +533,11 @@ static int process_all_tables_in_db(char *database)
else
{
while ((row = mysql_fetch_row(res)))
- /* Skip tables with an engine of NULL (probably a view). */
- if (row[1])
+ /*
+ Skip tables with an engine of NULL (probably a view)
+ if we don't perform renaming.
+ */
+ if (row[1] || what_to_do == DO_UPGRADE)
{
handle_request_for_tables(row[0], strlen(row[0]));
}