diff options
author | unknown <georg@lmy002.wdf.sap.corp> | 2005-09-18 21:43:28 +0200 |
---|---|---|
committer | unknown <georg@lmy002.wdf.sap.corp> | 2005-09-18 21:43:28 +0200 |
commit | 458aa0e34b3f4f6f5ccac6b03502e88864a2a18b (patch) | |
tree | 4f40850583dc106a3d2244b93f21e79b9e792a6f /sql/parse_file.h | |
parent | bf58b698e22efe0849fc8ee18fc30e3914d73409 (diff) | |
download | mariadb-git-458aa0e34b3f4f6f5ccac6b03502e88864a2a18b.tar.gz |
Changes after discussion/review with Sanja
sql/parse_file.cc:
Fix after discussion/review with Sanja: removed rename_view from sql_view to general function rename_in_schema_file
(so it can be used for other .frm types like triggers too)
sql/parse_file.h:
added prototype for rename_in_schema_file
sql/sql_rename.cc:
simplified code (thanks to Sanja)
sql/sql_view.cc:
moved rename_view_files to rename_in_schema_file (parse_file.cc)
corrected MYF parameter from MY_WME to 0.
Diffstat (limited to 'sql/parse_file.h')
-rw-r--r-- | sql/parse_file.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sql/parse_file.h b/sql/parse_file.h index cc0aa6556f6..b4199e4fbf1 100644 --- a/sql/parse_file.h +++ b/sql/parse_file.h @@ -48,6 +48,9 @@ my_bool sql_create_definition_file(const LEX_STRING *dir, const LEX_STRING *file_name, const LEX_STRING *type, gptr base, File_option *parameters, uint versions); +my_bool rename_in_schema_file(const char *schema, const char *old_name, + const char *new_name, ulonglong revision, + uint num_view_backups); class File_parser: public Sql_alloc { |