~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/show.cc

  • Committer: Brian Aker
  • Date: 2009-08-22 02:06:02 UTC
  • mto: This revision was merged to the branch mainline in revision 1123.
  • Revision ID: brian@gaz-20090822020602-gf1w7y1dgm2izqcy
Fix storing data/index path

Show diffs side-by-side

added added

removed removed

Lines of Context:
381
381
}
382
382
 
383
383
 
384
 
/* Append directory name (if exists) to CREATE INFO */
385
 
 
386
 
static void append_directory(String *packet, const char *dir_type,
387
 
                             const char *filename)
388
 
{
389
 
  if (filename)
390
 
  {
391
 
    uint32_t length= dirname_length(filename);
392
 
    packet->append(' ');
393
 
    packet->append(dir_type);
394
 
    packet->append(STRING_WITH_LEN(" DIRECTORY='"));
395
 
    packet->append(filename, length);
396
 
    packet->append('\'');
397
 
  }
398
 
}
399
 
 
400
 
 
401
384
#define LIST_PROCESS_HOST_LEN 64
402
385
 
403
386
static bool get_field_default_value(Field *timestamp_field,
711
694
      append_unescaped(packet, share->getComment(),
712
695
                       share->getCommentLength());
713
696
    }
714
 
    if (share->connect_string.length)
715
 
    {
716
 
      packet->append(STRING_WITH_LEN(" CONNECTION="));
717
 
      append_unescaped(packet, share->connect_string.str, share->connect_string.length);
718
 
    }
719
 
    append_directory(packet, "DATA",  create_info.data_file_name);
720
 
    append_directory(packet, "INDEX", create_info.index_file_name);
721
697
  }
722
698
  table->restore_column_map(old_map);
723
699
  return(0);