diff options
author | unknown <monty@hundin.mysql.fi> | 2001-08-21 13:44:01 +0300 |
---|---|---|
committer | unknown <monty@hundin.mysql.fi> | 2001-08-21 13:44:01 +0300 |
commit | 023cbef04c5bec28e939d5076c5f329ab7f3994f (patch) | |
tree | 4e64a1ec67abe449474688af7b06340fac1019d7 /myisam/mi_cache.c | |
parent | f3171b49b3507b84b5f26bdaf73932495741d7fc (diff) | |
download | mariadb-git-023cbef04c5bec28e939d5076c5f329ab7f3994f.tar.gz |
Remove usage of my_dup(), as this casued error 127 when reading MyISAM tables
New definition of WEEK().
Docs/manual.texi:
Changelog
myisam/mi_cache.c:
Better logging on error
myisam/mi_open.c:
Remove usage of my_dup(), as this casued error 127 when reading tables
mysql-test/r/func_time.result:
More tests for the WEEK/YEARWEEK function
mysql-test/t/func_time.test:
More tests for the WEEK/YEARWEEK function
sql/time.cc:
New definition of WEEK
Diffstat (limited to 'myisam/mi_cache.c')
-rw-r--r-- | myisam/mi_cache.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/myisam/mi_cache.c b/myisam/mi_cache.c index 0e630cae22b..0aae316f23d 100644 --- a/myisam/mi_cache.c +++ b/myisam/mi_cache.c @@ -73,6 +73,9 @@ int _mi_read_cache(IO_CACHE *info, byte *buff, my_off_t pos, uint length, if (!(flag & READING_HEADER) || info->error == -1 || (uint) info->error+in_buff_length < 3) { + DBUG_PRINT("error", + ("Error %d reading next-multi-part block (Got %d bytes)", + my_errno, info->error)); if (!my_errno) my_errno=HA_ERR_WRONG_IN_RECORD; DBUG_RETURN(1); @@ -87,6 +90,9 @@ int _mi_read_cache(IO_CACHE *info, byte *buff, my_off_t pos, uint length, if (!(flag & READING_HEADER) || (int) read_length == -1 || read_length+in_buff_length < 3) { + DBUG_PRINT("error", + ("Error %d reading new block (Got %d bytes)", + my_errno, (int) read_length)); if (!my_errno) my_errno=HA_ERR_WRONG_IN_RECORD; DBUG_RETURN(1); |