~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_load.cc

merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
130
130
  String *field_term=ex->field_term,*escaped=ex->escaped;
131
131
  String *enclosed=ex->enclosed;
132
132
  bool is_fifo=0;
133
 
  char *db= table_list->db;                     // This is never null
134
 
  assert(db);
 
133
 
 
134
  assert(table_list->getSchemaName()); // This should never be null
 
135
 
135
136
  /*
136
137
    If path for cursor is not defined, we will use the current database.
137
138
    If this is not set, we will use the directory where the table to be
138
139
    loaded is located
139
140
  */
140
 
  const char *tdb= session->db.empty() ? db  : session->db.c_str();             // Result is never null
 
141
  const char *tdb= session->db.empty() ? table_list->getSchemaName()  : session->db.c_str();            // Result is never null
141
142
  assert(tdb);
142
143
  uint32_t skip_lines= ex->skip_lines;
143
144
  bool transactional_table;
169
170
  */
170
171
  if (unique_table(table_list, table_list->next_global))
171
172
  {
172
 
    my_error(ER_UPDATE_TABLE_USED, MYF(0), table_list->table_name);
 
173
    my_error(ER_UPDATE_TABLE_USED, MYF(0), table_list->getTableName());
173
174
    return(true);
174
175
  }
175
176
 
453
454
    }
454
455
    it.rewind();
455
456
    unsigned char *pos=read_info.row_start;
456
 
#ifdef HAVE_purify
 
457
#ifdef HAVE_VALGRIND
457
458
    read_info.row_end[0]=0;
458
459
#endif
459
460