diff options
author | unknown <georg@lmy002.wdf.sap.corp> | 2005-09-16 17:13:21 +0200 |
---|---|---|
committer | unknown <georg@lmy002.wdf.sap.corp> | 2005-09-16 17:13:21 +0200 |
commit | bf58b698e22efe0849fc8ee18fc30e3914d73409 (patch) | |
tree | 42699dfbd0ad93df462e371d7a4a287bd38af876 /sql/sql_view.h | |
parent | b34d5bd24733e2e50d4d32c37fa9ebc722177bf2 (diff) | |
download | mariadb-git-bf58b698e22efe0849fc8ee18fc30e3914d73409.tar.gz |
Fix for bug#5508 after Sanja's review
mysql-test/r/view.result:
test results for rename table view1 to view2
mysql-test/t/view.test:
tests for rename table view1 to view2
sql/share/errmsg.txt:
added new errormessage (schema change not allowed in rename table view)
sql/sql_rename.cc:
added support for renaming views
sql/sql_view.cc:
added new function mysql_rename_view
sql/sql_view.h:
added prototype mysql_rename_view
Diffstat (limited to 'sql/sql_view.h')
-rw-r--r-- | sql/sql_view.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/sql_view.h b/sql/sql_view.h index 9d961feb143..4cc9eb454fb 100644 --- a/sql/sql_view.h +++ b/sql/sql_view.h @@ -34,6 +34,7 @@ int view_checksum(THD *thd, TABLE_LIST *view); extern TYPELIB updatable_views_with_limit_typelib; bool check_duplicate_names(List<Item>& item_list, bool gen_unique_view_names); +bool mysql_rename_view(THD *thd, const char *new_name, TABLE_LIST *view); #define VIEW_ANY_ACL (SELECT_ACL | UPDATE_ACL | INSERT_ACL | DELETE_ACL) |