~ubuntu-branches/ubuntu/lucid/mysql-dfsg-5.1/lucid-security

« back to all changes in this revision

Viewing changes to client/mysqldump.c

  • Committer: Package Import Robot
  • Author(s): Seth Arnold
  • Date: 2013-04-18 17:04:15 UTC
  • mfrom: (1.2.3)
  • Revision ID: package-import@ubuntu.com-20130418170415-0ogqujl7eqweolxq
Tags: 5.1.69-0ubuntu0.10.04.1
* SECURITY UPDATE: Update to 5.1.69 to fix security issues (LP: #1170516)
  - http://www.oracle.com/technetwork/topics/security/cpuapr2013-1899555.html

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
   Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights reserved.
 
2
   Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
3
3
 
4
4
   This program is free software; you can redistribute it and/or modify
5
5
   it under the terms of the GNU General Public License as published by
2635
2635
 
2636
2636
          row= mysql_fetch_row(result);
2637
2637
 
2638
 
          fprintf(sql_file, "  %s %s", quote_name(row[0], name_buff, 0),
2639
 
                  row[1]);
 
2638
          /*
 
2639
            The actual column type doesn't matter anyway, since the table will
 
2640
            be dropped at run time.
 
2641
            We do tinyint to avoid hitting the row size limit.
 
2642
          */
 
2643
          fprintf(sql_file, " %s tinyint NOT NULL",
 
2644
                  quote_name(row[0], name_buff, 0));
2640
2645
 
2641
2646
          while((row= mysql_fetch_row(result)))
2642
2647
          {
2643
2648
            /* col name, col type */
2644
 
            fprintf(sql_file, ",\n  %s %s",
2645
 
                    quote_name(row[0], name_buff, 0), row[1]);
 
2649
            fprintf(sql_file, ",\n  %s tinyint NOT NULL",
 
2650
                    quote_name(row[0], name_buff, 0));
2646
2651
          }
2647
2652
 
2648
2653
          /*
3393
3398
  if (!opt_events && !my_strcasecmp(&my_charset_latin1, db, "mysql") &&
3394
3399
      !my_strcasecmp(&my_charset_latin1, table, "event"))
3395
3400
  {
3396
 
    verbose_msg("-- Skipping data table mysql.event, --skip-events was used\n");
 
3401
    fprintf(stderr, "-- Warning: Skipping the data of table mysql.event."
 
3402
            " Specify the --events option explicitly.\n");
3397
3403
    DBUG_VOID_RETURN;
3398
3404
  }
3399
3405