~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to sql/sql_show.cc

  • Committer: Stewart Smith
  • Date: 2008-06-30 05:33:25 UTC
  • mfrom: (12.2.8 drizzle)
  • mto: This revision was merged to the branch mainline in revision 19.
  • Revision ID: stewart@flamingspork.com-20080630053325-mwrv6bjaufcpvj8n
merge my work

Show diffs side-by-side

added added

removed removed

Lines of Context:
260
260
        end= strend(buff);
261
261
        if (end != buff && end[-1] == FN_LIBCHAR)
262
262
          end[-1]= 0;                           // Remove end FN_LIBCHAR
263
 
        if (!my_stat(buff, file->mystat, MYF(0)))
 
263
        if (stat(buff, file->mystat))
264
264
               continue;
265
265
       }
266
266
#endif
2832
2832
  {
2833
2833
    char path[FN_REFLEN+16];
2834
2834
    uint path_len;
2835
 
    MY_STAT stat_info;
 
2835
    struct stat stat_info;
2836
2836
    if (!lookup_field_vals.db_value.str[0])
2837
2837
      DBUG_RETURN(0);
2838
2838
    path_len= build_table_filename(path, sizeof(path),
2839
2839
                                   lookup_field_vals.db_value.str, "", "", 0);
2840
2840
    path[path_len-1]= 0;
2841
 
    if (!my_stat(path,&stat_info,MYF(0)))
 
2841
    if (stat(path,&stat_info))
2842
2842
      DBUG_RETURN(0);
2843
2843
  }
2844
2844