summaryrefslogtreecommitdiff
path: root/sql/parse_file.h
diff options
context:
space:
mode:
authorSergey Glukhov <Sergey.Glukhov@sun.com>2009-04-13 18:09:10 +0500
committerSergey Glukhov <Sergey.Glukhov@sun.com>2009-04-13 18:09:10 +0500
commit7ff5b7a9369e97a66d5773df5092553f5e976888 (patch)
treeb4749b2e890efcbe49fdddc527836b6733e5ae5a /sql/parse_file.h
parent6c08e3c2fb75eebb814f77057fea5827d0468f7c (diff)
downloadmariadb-git-7ff5b7a9369e97a66d5773df5092553f5e976888.tar.gz
Bug#43385 Cannot ALTER DATABASE ... UPGRADE DATA DIRECTORY NAME when Views exist(addon)
mysql_rename_view can not rename view if database is not the same. The fix is to add new argument 'new_db' to mysql_rename_view() and allow rename with different databases (only for ALTER DATABASE ... UPGRADE DATA DIRECTORY NAME).
Diffstat (limited to 'sql/parse_file.h')
-rw-r--r--sql/parse_file.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/parse_file.h b/sql/parse_file.h
index cfac69cc471..84647e45927 100644
--- a/sql/parse_file.h
+++ b/sql/parse_file.h
@@ -83,7 +83,7 @@ sql_create_definition_file(const LEX_STRING *dir, const LEX_STRING *file_name,
uchar* base, File_option *parameters);
my_bool rename_in_schema_file(THD *thd,
const char *schema, const char *old_name,
- const char *new_name);
+ const char *new_db, const char *new_name);
class File_parser: public Sql_alloc
{