~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_load.cc

  • Committer: Stewart Smith
  • Date: 2009-02-16 04:50:26 UTC
  • mto: This revision was merged to the branch mainline in revision 887.
  • Revision ID: stewart@flamingspork.com-20090216045026-2grk64xt2c4dbi6c
load data infile ENOENT would crash drizzled due to improper arguments to my_errror

Show diffs side-by-side

added added

removed removed

Lines of Context:
298
298
    }
299
299
    if ((file=my_open(name,O_RDONLY,MYF(MY_WME))) < 0)
300
300
    {
301
 
      my_error(ER_CANT_OPEN_FILE, MYF(0), my_errno);
 
301
      my_error(ER_CANT_OPEN_FILE, MYF(0), name, my_errno);
302
302
      return(true);
303
303
    }
304
304
  }