diff options
author | unknown <monty@hundin.mysql.fi> | 2001-09-11 01:40:52 +0300 |
---|---|---|
committer | unknown <monty@hundin.mysql.fi> | 2001-09-11 01:40:52 +0300 |
commit | 34925f8d823c700c939f0622b6af85001458a226 (patch) | |
tree | 6a962f88c6b25e60b6f09ab8b8c7eb0cbb47bc22 /myisam/mi_delete_all.c | |
parent | 354882c8ce232770b2f3604cbcd5142aad6b002c (diff) | |
download | mariadb-git-34925f8d823c700c939f0622b6af85001458a226.tar.gz |
Fixes for German sorting order.
Docs/manual.texi:
Update for German sorting
configure.in:
Don't make the German sort order default
myisam/mi_delete_all.c:
Truncate files on DELETE FROM table_name to not get warnings when checking files
myisam/mi_search.c:
Fix for multi-byte character sets.
sql/item_cmpfunc.cc:
Use current character set when using STRCMP()
strings/ctype-latin1_de.c:
F
Diffstat (limited to 'myisam/mi_delete_all.c')
-rw-r--r-- | myisam/mi_delete_all.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/myisam/mi_delete_all.c b/myisam/mi_delete_all.c index c3ed9455e12..2c506da865f 100644 --- a/myisam/mi_delete_all.c +++ b/myisam/mi_delete_all.c @@ -15,7 +15,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ /* Remove all rows from a MyISAM table */ -/* This only clears the status information; The files are not truncated */ +/* This only clears the status information and truncates the data file */ #include "myisamdef.h" @@ -50,6 +50,8 @@ int mi_delete_all_rows(MI_INFO *info) myisam_log_command(MI_LOG_DELETE_ALL,info,(byte*) 0,0,0); VOID(_mi_writeinfo(info,WRITEINFO_UPDATE_KEYFILE)); + if (my_chsize(info->dfile, 0, MYF(MY_WME))) + goto err; allow_break(); /* Allow SIGHUP & SIGINT */ DBUG_RETURN(0); |