From 31df45cd2ef0b5ac0c1a8378ad304ae8de86f938 Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 25 Aug 2004 14:57:57 +0300 Subject: removing archive of .frm-s added (BUG#4821) mysql-test/r/view.result: Removing database with .frm archives mysql-test/t/view.test: Removing database with .frm archives sql/parse_file.cc: fixed revision number printing sql/sql_db.cc: removing archive of .frm-s added --- sql/parse_file.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sql/parse_file.cc') diff --git a/sql/parse_file.cc b/sql/parse_file.cc index 231780f437e..729f49dcbbe 100644 --- a/sql/parse_file.cc +++ b/sql/parse_file.cc @@ -269,8 +269,8 @@ sql_create_definition_file(const LEX_STRING *dir, const LEX_STRING *file_name, } } - my_snprintf(path_to, FN_REFLEN, "%s/%s-%04lld", - path_arc, file_name->str, old_version); + my_snprintf(path_to, FN_REFLEN, "%s/%s-%04lu", + path_arc, file_name->str, (ulong) old_version); if (my_rename(path, path_to, MYF(MY_WME))) { DBUG_RETURN(TRUE); @@ -279,9 +279,9 @@ sql_create_definition_file(const LEX_STRING *dir, const LEX_STRING *file_name, // remove very old version if (old_version > max_versions) { - my_snprintf(path_to, FN_REFLEN, "%s/%s-%04lld", + my_snprintf(path_to, FN_REFLEN, "%s/%s-%04lu", path_arc, file_name->str, - old_version - max_versions); + (ulong)(old_version - max_versions)); if (!access(path_arc, F_OK) && my_delete(path_to, MYF(MY_WME))) { DBUG_RETURN(TRUE); -- cgit v1.2.1