Merge neptunus.(none):/home/msvensson/mysql/bug15020/my50-bug15020

into  neptunus.(none):/home/msvensson/mysql/bug15020/my51-bug15020
This commit is contained in:
msvensson@neptunus.(none) 2006-01-19 11:43:19 +01:00
commit 96b1f9150c

View file

@ -1626,7 +1626,8 @@ void open_table_error(TABLE_SHARE *share, int error, int db_errno, int errarg)
else
{
strxmov(buff, share->normalized_path.str, reg_ext, NullS);
my_error(ER_FILE_NOT_FOUND, errortype, buff, db_errno);
my_error((db_errno == EMFILE) ? ER_CANT_OPEN_FILE : ER_FILE_NOT_FOUND,
errortype, buff, db_errno);
}
break;
case 2: