~maria-captains/maria/mysql-6.0-backup

« back to all changes in this revision

Viewing changes to client/mysql.cc

  • Committer: Thava Alagu
  • Date: 2010-03-11 19:18:17 UTC
  • mfrom: (3719.14.62 mysql-6.0-codebase)
  • Revision ID: thavamuni.alagu@sun.com-20100311191817-5nigmq884xo9fuut
Merge from mysql-6.0-codebase

Show diffs side-by-side

added added

removed removed

Lines of Context:
456
456
  { "FORCE", 0, 0, 0, ""},
457
457
  { "FOREIGN", 0, 0, 0, ""},
458
458
  { "FOUND", 0, 0, 0, ""},
459
 
  { "FRAC_SECOND", 0, 0, 0, ""},
460
459
  { "FROM", 0, 0, 0, ""},
461
460
  { "FULL", 0, 0, 0, ""},
462
461
  { "FULLTEXT", 0, 0, 0, ""},
701
700
  { "SQL_NO_CACHE", 0, 0, 0, ""},
702
701
  { "SQL_SMALL_RESULT", 0, 0, 0, ""},
703
702
  { "SQL_THREAD", 0, 0, 0, ""},
704
 
  { "SQL_TSI_FRAC_SECOND", 0, 0, 0, ""},
705
703
  { "SQL_TSI_SECOND", 0, 0, 0, ""},
706
704
  { "SQL_TSI_MINUTE", 0, 0, 0, ""},
707
705
  { "SQL_TSI_HOUR", 0, 0, 0, ""},
1370
1368
   (uchar**) &batch_abort_on_error, (uchar**) &batch_abort_on_error, 0,
1371
1369
   GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
1372
1370
#ifdef __NETWARE__
1373
 
  {"autoclose", OPT_AUTO_CLOSE, "Auto close the screen on exit for Netware.",
 
1371
  {"autoclose", OPT_AUTO_CLOSE, "Automatically close the screen on exit for Netware.",
1374
1372
   0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0},
1375
1373
#endif
1376
1374
  {"auto-rehash", OPT_AUTO_REHASH,
1384
1382
    "Automatically switch to vertical output mode if the result is wider than the terminal width.",
1385
1383
    (uchar**) &auto_vertical_output, (uchar**) &auto_vertical_output, 0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
1386
1384
  {"batch", 'B',
1387
 
   "Don't use history file. Disable interactive behavior. (Enables --silent)", 0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0},
 
1385
   "Don't use history file. Disable interactive behavior. (Enables --silent.)", 0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0},
1388
1386
  {"character-sets-dir", OPT_CHARSETS_DIR,
1389
 
   "Directory where character sets are.", (uchar**) &charsets_dir,
 
1387
   "Directory for character set files.", (uchar**) &charsets_dir,
1390
1388
   (uchar**) &charsets_dir, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
1391
1389
  {"column-type-info", OPT_COLUMN_TYPES, "Display column type information.",
1392
1390
   (uchar**) &column_types_flag, (uchar**) &column_types_flag,
1393
1391
   0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
1394
1392
  {"comments", 'c', "Preserve comments. Send comments to the server."
1395
 
   " The default is --skip-comments (discard comments), enable with --comments",
 
1393
   " The default is --skip-comments (discard comments), enable with --comments.",
1396
1394
   (uchar**) &preserve_comments, (uchar**) &preserve_comments,
1397
1395
   0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
1398
1396
  {"compress", 'C', "Use compression in server/client protocol.",
1400
1398
   0, 0, 0},
1401
1399
 
1402
1400
#ifdef DBUG_OFF
1403
 
  {"debug", '#', "This is a non-debug version. Catch this and exit",
 
1401
  {"debug", '#', "This is a non-debug version. Catch this and exit.",
1404
1402
   0,0, 0, GET_DISABLED, OPT_ARG, 0, 0, 0, 0, 0, 0},
1405
1403
#else
1406
 
  {"debug", '#', "Output debug log", (uchar**) &default_dbug_option,
 
1404
  {"debug", '#', "Output debug log.", (uchar**) &default_dbug_option,
1407
1405
   (uchar**) &default_dbug_option, 0, GET_STR, OPT_ARG, 0, 0, 0, 0, 0, 0},
1408
1406
#endif
1409
1407
  {"debug-check", OPT_DEBUG_CHECK, "Check memory and open file usage at exit.",
1418
1416
   (uchar**) &default_charset, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
1419
1417
  {"delimiter", OPT_DELIMITER, "Delimiter to be used.", (uchar**) &delimiter_str,
1420
1418
   (uchar**) &delimiter_str, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
1421
 
  {"execute", 'e', "Execute command and quit. (Disables --force and history file)", 0,
 
1419
  {"execute", 'e', "Execute command and quit. (Disables --force and history file.)", 0,
1422
1420
   0, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
1423
1421
  {"vertical", 'E', "Print the output of a query (rows) vertically.",
1424
1422
   (uchar**) &vertical, (uchar**) &vertical, 0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0,
1425
1423
   0},
1426
 
  {"force", 'f', "Continue even if we get an sql error. Sets abort-source-on-error to 0",
 
1424
  {"force", 'f', "Continue even if we get an SQL error. Sets abort-source-on-error to 0.",
1427
1425
   (uchar**) &ignore_errors, (uchar**) &ignore_errors, 0, GET_BOOL, NO_ARG, 0, 0,
1428
1426
   0, 0, 0, 0},
1429
1427
  {"named-commands", 'G',
1446
1444
   (uchar**) &current_host, 0, GET_STR_ALLOC, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
1447
1445
  {"html", 'H', "Produce HTML output.", (uchar**) &opt_html, (uchar**) &opt_html,
1448
1446
   0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
1449
 
  {"xml", 'X', "Produce XML output", (uchar**) &opt_xml, (uchar**) &opt_xml, 0,
 
1447
  {"xml", 'X', "Produce XML output.", (uchar**) &opt_xml, (uchar**) &opt_xml, 0,
1450
1448
   GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
1451
1449
  {"line-numbers", OPT_LINE_NUMBERS, "Write line numbers for errors.",
1452
1450
   (uchar**) &line_numbers, (uchar**) &line_numbers, 0, GET_BOOL,
1461
1459
  {"skip-column-names", 'N',
1462
1460
   "Don't write column names in results.",
1463
1461
   0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0},
1464
 
  {"sigint-ignore", OPT_SIGINT_IGNORE, "Ignore SIGINT (CTRL-C)",
 
1462
  {"sigint-ignore", OPT_SIGINT_IGNORE, "Ignore SIGINT (CTRL-C).",
1465
1463
   (uchar**) &opt_sigint_ignore,  (uchar**) &opt_sigint_ignore, 0, GET_BOOL,
1466
1464
   NO_ARG, 0, 0, 0, 0, 0, 0},
1467
1465
  {"one-database", 'o',
1469
1467
   0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0},
1470
1468
#ifdef USE_POPEN
1471
1469
  {"pager", OPT_PAGER,
1472
 
   "Pager to use to display results. If you don't supply an option the default pager is taken from your ENV variable PAGER. Valid pagers are less, more, cat [> filename], etc. See interactive help (\\h) also. This option does not work in batch mode. Disable with --disable-pager. This option is disabled by default.",
 
1470
   "Pager to use to display results. If you don't supply an option, the default pager is taken from your ENV variable PAGER. Valid pagers are less, more, cat [> filename], etc. See interactive help (\\h) also. This option does not work in batch mode. Disable with --disable-pager. This option is disabled by default.",
1473
1471
   0, 0, 0, GET_STR, OPT_ARG, 0, 0, 0, 0, 0, 0},
1474
1472
#endif
1475
1473
  {"password", 'p',
1490
1488
  {"prompt", OPT_PROMPT, "Set the mysql prompt to this value.",
1491
1489
   (uchar**) &current_prompt, (uchar**) &current_prompt, 0, GET_STR_ALLOC,
1492
1490
   REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
1493
 
  {"protocol", OPT_MYSQL_PROTOCOL, "The protocol of connection (tcp,socket,pipe,memory).",
 
1491
  {"protocol", OPT_MYSQL_PROTOCOL, "The protocol to use for connection (tcp, socket, pipe, memory).",
1494
1492
   0, 0, 0, GET_STR,  REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
1495
1493
  {"quick", 'q',
1496
1494
   "Don't cache result, print it row by row. This may slow down the server if the output is suspended. Doesn't use history file.",
1507
1505
   "Base name of shared memory.", (uchar**) &shared_memory_base_name, (uchar**) &shared_memory_base_name, 
1508
1506
   0, GET_STR_ALLOC, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
1509
1507
#endif
1510
 
  {"socket", 'S', "Socket file to use for connection.",
 
1508
  {"socket", 'S', "The socket file to use for connection.",
1511
1509
   (uchar**) &opt_mysql_unix_port, (uchar**) &opt_mysql_unix_port, 0, GET_STR_ALLOC,
1512
1510
   REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
1513
1511
#include "sslopt-longopts.h"
1538
1536
   (uchar**) &opt_connect_timeout, 0, GET_ULONG, REQUIRED_ARG, 0, 0, 3600*12, 0,
1539
1537
   0, 0},
1540
1538
  {"max_allowed_packet", OPT_MAX_ALLOWED_PACKET,
1541
 
   "Max packet length to send to, or receive from server",
 
1539
   "The maximum packet length to send to or receive from server.",
1542
1540
   (uchar**) &opt_max_allowed_packet, (uchar**) &opt_max_allowed_packet, 0,
1543
1541
   GET_ULONG, REQUIRED_ARG, 16 *1024L*1024L, 4096,
1544
1542
   (longlong) 2*1024L*1024L*1024L, MALLOC_OVERHEAD, 1024, 0},
1545
1543
  {"net_buffer_length", OPT_NET_BUFFER_LENGTH,
1546
 
   "Buffer for TCP/IP and socket communication",
 
1544
   "The buffer size for TCP/IP and socket communication.",
1547
1545
   (uchar**) &opt_net_buffer_length, (uchar**) &opt_net_buffer_length, 0, GET_ULONG,
1548
1546
   REQUIRED_ARG, 16384, 1024, 512*1024*1024L, MALLOC_OVERHEAD, 1024, 0},
1549
1547
  {"select_limit", OPT_SELECT_LIMIT,
1550
 
   "Automatic limit for SELECT when using --safe-updates",
 
1548
   "Automatic limit for SELECT when using --safe-updates.",
1551
1549
   (uchar**) &select_limit,
1552
1550
   (uchar**) &select_limit, 0, GET_ULONG, REQUIRED_ARG, 1000L, 1, ULONG_MAX,
1553
1551
   0, 1, 0},
1554
1552
  {"max_join_size", OPT_MAX_JOIN_SIZE,
1555
 
   "Automatic limit for rows in a join when using --safe-updates",
 
1553
   "Automatic limit for rows in a join when using --safe-updates.",
1556
1554
   (uchar**) &max_join_size,
1557
1555
   (uchar**) &max_join_size, 0, GET_ULONG, REQUIRED_ARG, 1000000L, 1, ULONG_MAX,
1558
1556
   0, 1, 0},
1559
1557
  {"secure-auth", OPT_SECURE_AUTH, "Refuse client connecting to server if it"
1560
 
    " uses old (pre-4.1.1) protocol", (uchar**) &opt_secure_auth,
 
1558
    " uses old (pre-4.1.1) protocol.", (uchar**) &opt_secure_auth,
1561
1559
    (uchar**) &opt_secure_auth, 0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
1562
1560
  {"server-arg", OPT_SERVER_ARG, "Send embedded server this as a parameter.",
1563
1561
   0, 0, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},