summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorunknown <ramil/ram@mysql.com/ramil.myoffice.izhnet.ru>2007-10-24 22:36:57 +0500
committerunknown <ramil/ram@mysql.com/ramil.myoffice.izhnet.ru>2007-10-24 22:36:57 +0500
commitd4befc1dca23d4ed535a4eb2f82700b54702375b (patch)
tree99e5d5cd41856902feefa6dca1954627f0d00b3c /client
parent531193dc422b0f5a05ded78b2db1655cdd460528 (diff)
downloadmariadb-git-d4befc1dca23d4ed535a4eb2f82700b54702375b.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. client/mysqlcheck.c: Fix for bug #30679: 5.1 name encoding not performed for views during upgrade - rename views performing --fix-table-names as well. mysql-test/r/mysqlcheck.result: Fix for bug #30679: 5.1 name encoding not performed for views during upgrade - test result. mysql-test/t/mysqlcheck.test: Fix for bug #30679: 5.1 name encoding not performed for views during upgrade - test case.
Diffstat (limited to 'client')
-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]));
}