~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to client/drizzledump.cc

  • Committer: Brian Aker
  • Date: 2009-01-17 17:08:25 UTC
  • Revision ID: brian@gir-3.local-20090117170825-l7vo00mje6uk5cg0
Test case fixes + TABLE_CACHE to class (will rename in manner which is NOT
YELLING CASE UP).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1376
1376
  char       name_buff[NAME_LEN+3],table_buff[NAME_LEN*2+3];
1377
1377
  char       table_buff2[NAME_LEN*2+3], query_buff[QUERY_LENGTH];
1378
1378
  FILE       *sql_file= md_result_file;
1379
 
  int        len;
1380
1379
  DRIZZLE_RES  *result;
1381
1380
  DRIZZLE_ROW  row;
1382
1381
 
1402
1401
 
1403
1402
  verbose_msg(_("-- Retrieving table structure for table %s...\n"), table);
1404
1403
 
1405
 
  len= snprintf(query_buff, sizeof(query_buff),
1406
 
                "SET OPTION SQL_QUOTE_SHOW_CREATE=%d",
1407
 
                (opt_quoted || opt_keywords));
1408
 
 
1409
1404
  result_table=     quote_name(table, table_buff, 1);
1410
1405
  opt_quoted_table= quote_name(table, table_buff2, 0);
1411
1406
 
1415
1410
    order_by= primary_key_fields(result_table);
1416
1411
  }
1417
1412
 
1418
 
  if (!opt_xml && !drizzle_query_with_error_report(drizzle, 0, query_buff))
 
1413
  if (!opt_xml)
1419
1414
  {
1420
1415
    /* using SHOW CREATE statement */
1421
1416
    if (!opt_no_create_info)
1447
1442
      /*
1448
1443
        Even if the "table" is a view, we do a DROP TABLE here.
1449
1444
       */
1450
 
        fprintf(sql_file, "DROP TABLE IF EXISTS %s;\n",
1451
 
                opt_quoted_table);
 
1445
        fprintf(sql_file, "DROP TABLE IF EXISTS %s;\n", opt_quoted_table);
1452
1446
        check_io(sql_file);
1453
1447
      }
1454
1448