~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to client/mysqlshow.c

  • Committer: Stewart Smith
  • Date: 2008-07-09 01:40:54 UTC
  • mfrom: (105 drizzle)
  • mto: This revision was merged to the branch mainline in revision 111.
  • Revision ID: stewart@flamingspork.com-20080709014054-xfgfzirbhqzrzkkj
mergeĀ fromĀ mainline

Show diffs side-by-side

added added

removed removed

Lines of Context:
465
465
      table name
466
466
    */
467
467
    mysql_real_escape_string(mysql, rows, table, (unsigned long)strlen(table));
468
 
    my_snprintf(query, sizeof(query), "show%s tables like '%s'",
469
 
                opt_table_type ? " full" : "", rows);
 
468
    snprintf(query, sizeof(query), "show%s tables like '%s'",
 
469
             opt_table_type ? " full" : "", rows);
470
470
  }
471
471
  else
472
 
    my_snprintf(query, sizeof(query), "show%s tables",
473
 
                opt_table_type ? " full" : "");
 
472
    snprintf(query, sizeof(query), "show%s tables",
 
473
             opt_table_type ? " full" : "");
474
474
  if (mysql_query(mysql, query) || !(result= mysql_store_result(mysql)))
475
475
  {
476
476
    fprintf(stderr,"%s: Cannot list tables in %s: %s\n",my_progname,db,