~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to libdrizzle/local_infile.c

  • Committer: Monty Taylor
  • Date: 2008-08-15 20:00:16 UTC
  • Revision ID: monty@inaugust.com-20080815200016-fc51jyep7u9xyuib
Removed more mysys errmsg links.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
#include <drizzled/global.h>
22
22
#include <mysys/my_sys.h>
23
23
#include "my_time.h"
24
 
#include <mysys/mysys_err.h>
25
24
#include <mystrings/m_string.h>
26
25
#include <mystrings/m_ctype.h>
27
26
#include "drizzle.h"
188
187
  {
189
188
    data->error_num= my_errno;
190
189
    snprintf(data->error_msg, sizeof(data->error_msg)-1,
191
 
             EE(EE_FILENOTFOUND), tmp_name, data->error_num);
 
190
             _("File '%s' not found (Errcode: %d)"), tmp_name, data->error_num);
192
191
    return 1;
193
192
  }
194
193
  return 0; /* ok */
217
216
 
218
217
  if ((count= (int) my_read(data->fd, (uchar *) buf, buf_len, MYF(0))) < 0)
219
218
  {
220
 
    data->error_num= EE_READ; /* the errmsg for not entire file read */
 
219
    data->error_num= 2; /* the errmsg for not entire file read */
221
220
    snprintf(data->error_msg, sizeof(data->error_msg)-1,
222
 
             EE(EE_READ),
 
221
             _("Error reading file '%s' (Errcode: %d)"),
223
222
             data->filename, my_errno);
224
223
  }
225
224
  return count;