~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/show.cc

  • Committer: Brian Aker
  • Date: 2009-05-27 23:03:42 UTC
  • mto: This revision was merged to the branch mainline in revision 1040.
  • Revision ID: brian@gaz-20090527230342-aeawr11tz8ra050q
Refactor for build_table_filename()

Show diffs side-by-side

added added

removed removed

Lines of Context:
2062
2062
                     bool with_i_schema, LEX_STRING *db_name)
2063
2063
{
2064
2064
  char path[FN_REFLEN];
2065
 
  build_table_filename(path, sizeof(path), db_name->str, "", "", 0);
 
2065
  build_table_filename(path, sizeof(path), db_name->str, "", false);
2066
2066
  if (!lookup_field_vals->wild_table_value &&
2067
2067
      lookup_field_vals->table_value.str)
2068
2068
  {
2214
2214
  {
2215
2215
    char path[FN_REFLEN];
2216
2216
    (void) build_table_filename(path, sizeof(path), db_name->str,
2217
 
                                table_name->str, "", 0);
 
2217
                                table_name->str, false);
2218
2218
 
2219
2219
      table->field[3]->store(STRING_WITH_LEN("BASE Table"),
2220
2220
                             system_charset_info);
2622
2622
    if (!lookup_field_vals.db_value.str[0])
2623
2623
      return(0);
2624
2624
    path_len= build_table_filename(path, sizeof(path),
2625
 
                                   lookup_field_vals.db_value.str, "", "", 0);
 
2625
                                   lookup_field_vals.db_value.str, "", false);
2626
2626
    path[path_len-1]= 0;
2627
2627
    if (stat(path,&stat_info))
2628
2628
      return(0);