From ac015116e14e32f83fe3cbbc7c6608ee5a6b6f89 Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 19 Jan 2006 11:35:27 +0100 Subject: [PATCH] Bug#15020 "Can't find files" message incorrect for error 24 sql/table.cc: Use error message "Can't open file" if errno EMFILE is returned. --- sql/table.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sql/table.cc b/sql/table.cc index 07ca236854c..99cc52ecf54 100644 --- a/sql/table.cc +++ b/sql/table.cc @@ -1164,7 +1164,8 @@ static void frm_error(int error, TABLE *form, const char *name, my_error(ER_NO_SUCH_TABLE, MYF(0), db, real_name); } else - my_error(ER_FILE_NOT_FOUND, errortype, + my_error((my_errno == EMFILE) ? ER_CANT_OPEN_FILE : ER_FILE_NOT_FOUND, + errortype, fn_format(buff, name, form_dev, reg_ext, 0), my_errno); break; case 2: