~ubuntu-branches/ubuntu/maverick/mysql-5.1/maverick-proposed

« back to all changes in this revision

Viewing changes to client/mysqlcheck.c

  • Committer: Package Import Robot
  • Author(s): Marc Deslauriers
  • Date: 2012-02-22 14:16:05 UTC
  • mto: This revision was merged to the branch mainline in revision 20.
  • Revision ID: package-import@ubuntu.com-20120222141605-nxlu9yzc6attylc2
Tags: upstream-5.1.61
ImportĀ upstreamĀ versionĀ 5.1.61

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* Copyright (C) 2000 MySQL AB
 
1
/*
 
2
   Copyright (c) 2001, 2011, Oracle and/or its affiliates. All rights reserved.
2
3
 
3
4
   This program is free software; you can redistribute it and/or modify
4
5
   it under the terms of the GNU General Public License as published by
11
12
 
12
13
   You should have received a copy of the GNU General Public License
13
14
   along with this program; if not, write to the Free Software
14
 
   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */
15
 
 
16
 
/* By Jani Tolonen, 2001-04-20, MySQL Development Team */
 
15
   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301  USA
 
16
*/
17
17
 
18
18
#define CHECK_VERSION "2.5.0"
19
19
 
22
22
#include <mysql_version.h>
23
23
#include <mysqld_error.h>
24
24
#include <sslopt-vars.h>
 
25
#include <welcome_copyright_notice.h> /* ORACLE_WELCOME_COPYRIGHT_NOTICE */
25
26
 
26
27
/* Exit codes */
27
28
 
221
222
static void usage(void)
222
223
{
223
224
  print_version();
224
 
  puts("By Jani Tolonen, 2001-04-20, MySQL Development Team.\n");
225
 
  puts("This software comes with ABSOLUTELY NO WARRANTY. This is free software,\n");
226
 
  puts("and you are welcome to modify and redistribute it under the GPL license.\n");
 
225
  puts(ORACLE_WELCOME_COPYRIGHT_NOTICE("2000, 2011"));
227
226
  puts("This program can be used to CHECK (-c, -m, -C), REPAIR (-r), ANALYZE (-a),");
228
227
  puts("or OPTIMIZE (-o) tables. Some of the options (like -e or -q) can be");
229
228
  puts("used at the same time. Not all options are supported by all storage engines.");
703
702
  if (opt_all_in_1)
704
703
  {
705
704
    /* No backticks here as we added them before */
706
 
    query_length= my_sprintf(query,
707
 
                             (query, "%s TABLE %s %s", op, tables, options));
 
705
    query_length= sprintf(query, "%s TABLE %s %s", op, tables, options);
708
706
  }
709
707
  else
710
708
  {