467
467
mysql_real_escape_string(mysql, rows, table, (unsigned long)strlen(table));
468
my_snprintf(query, sizeof(query), "show%s tables like '%s'",
468
snprintf(query, sizeof(query), "show%s tables like '%s'",
472
my_snprintf(query, sizeof(query), "show%s tables",
472
snprintf(query, sizeof(query), "show%s tables",
474
474
if (mysql_query(mysql, query) || !(result= mysql_store_result(mysql)))
476
476
fprintf(stderr,"%s: Cannot list tables in %s: %s\n",my_progname,db,