~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_load.cc

  • Committer: Jay Pipes
  • Date: 2008-12-18 15:55:03 UTC
  • mto: This revision was merged to the branch mainline in revision 717.
  • Revision ID: jpipes@serialcoder-20081218155503-u45ygyunrdyyvquq
Fix for Bug#308457.  Gave UTF8 enclosure and escape character on LOAD DATA INFILE and changed the error message to be more descriptive

Show diffs side-by-side

added added

removed removed

Lines of Context:
134
134
  bool transactional_table;
135
135
  Session::killed_state killed_status= Session::NOT_KILLED;
136
136
 
137
 
  if (escaped->length() > 1 || enclosed->length() > 1)
 
137
  /* Escape and enclosed character may be a utf8 4-byte character */
 
138
  if (escaped->length() > 4 || enclosed->length() > 4)
138
139
  {
139
 
    my_message(ER_WRONG_FIELD_TERMINATORS,ER(ER_WRONG_FIELD_TERMINATORS),
140
 
               MYF(0));
 
140
    my_error(ER_WRONG_FIELD_TERMINATORS,MYF(0),enclosed->c_ptr(), enclosed->length());
141
141
    return(true);
142
142
  }
143
143
  if (open_and_lock_tables(session, table_list))