2006-12-31 01:02:27 +01:00
|
|
|
/* Copyright (C) 2001-2006 MySQL AB
|
2001-12-06 13:10:51 +01:00
|
|
|
|
2001-09-12 22:53:31 +02:00
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
2006-12-23 20:17:15 +01:00
|
|
|
the Free Software Foundation; version 2 of the License.
|
2001-12-06 13:10:51 +01:00
|
|
|
|
2001-09-12 22:53:31 +02:00
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
2001-12-06 13:10:51 +01:00
|
|
|
|
2001-09-12 22:53:31 +02:00
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with this program; if not, write to the Free Software
|
|
|
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
|
|
|
|
|
|
|
/* Common defines for all clients */
|
|
|
|
|
2001-09-14 01:54:33 +02:00
|
|
|
#include <my_global.h>
|
2002-11-08 20:57:36 +01:00
|
|
|
#include <my_sys.h>
|
2001-09-12 22:53:31 +02:00
|
|
|
#include <m_string.h>
|
|
|
|
#include <mysql.h>
|
2002-07-23 17:31:22 +02:00
|
|
|
#include <mysql_embed.h>
|
2001-09-12 22:53:31 +02:00
|
|
|
#include <errmsg.h>
|
2002-05-22 22:54:24 +02:00
|
|
|
#include <my_getopt.h>
|
2001-09-12 22:53:31 +02:00
|
|
|
|
|
|
|
/* We have to define 'enum options' identical in all files to keep OS2 happy */
|
|
|
|
|
2004-02-09 12:31:03 +01:00
|
|
|
enum options_client
|
|
|
|
{
|
|
|
|
OPT_CHARSETS_DIR=256, OPT_DEFAULT_CHARSET,
|
|
|
|
OPT_PAGER, OPT_NOPAGER, OPT_TEE, OPT_NOTEE,
|
|
|
|
OPT_LOW_PRIORITY, OPT_AUTO_REPAIR, OPT_COMPRESS,
|
|
|
|
OPT_DROP, OPT_LOCKS, OPT_KEYWORDS, OPT_DELAYED, OPT_OPTIMIZE,
|
|
|
|
OPT_FTB, OPT_LTB, OPT_ENC, OPT_O_ENC, OPT_ESC, OPT_TABLES,
|
|
|
|
OPT_MASTER_DATA, OPT_AUTOCOMMIT, OPT_AUTO_REHASH,
|
|
|
|
OPT_LINE_NUMBERS, OPT_COLUMN_NAMES, OPT_CONNECT_TIMEOUT,
|
|
|
|
OPT_MAX_ALLOWED_PACKET, OPT_NET_BUFFER_LENGTH,
|
|
|
|
OPT_SELECT_LIMIT, OPT_MAX_JOIN_SIZE, OPT_SSL_SSL,
|
|
|
|
OPT_SSL_KEY, OPT_SSL_CERT, OPT_SSL_CA, OPT_SSL_CAPATH,
|
|
|
|
OPT_SSL_CIPHER, OPT_SHUTDOWN_TIMEOUT, OPT_LOCAL_INFILE,
|
|
|
|
OPT_DELETE_MASTER_LOGS, OPT_COMPACT,
|
|
|
|
OPT_PROMPT, OPT_IGN_LINES,OPT_TRANSACTION,OPT_MYSQL_PROTOCOL,
|
|
|
|
OPT_SHARED_MEMORY_BASE_NAME, OPT_FRM, OPT_SKIP_OPTIMIZATION,
|
|
|
|
OPT_COMPATIBLE, OPT_RECONNECT, OPT_DELIMITER, OPT_SECURE_AUTH,
|
2004-07-29 23:25:58 +02:00
|
|
|
OPT_OPEN_FILES_LIMIT, OPT_SET_CHARSET, OPT_CREATE_OPTIONS,
|
2004-10-07 21:47:11 +02:00
|
|
|
OPT_START_POSITION, OPT_STOP_POSITION, OPT_START_DATETIME, OPT_STOP_DATETIME,
|
2005-05-06 10:39:30 +02:00
|
|
|
OPT_SIGINT_IGNORE, OPT_HEXBLOB, OPT_ORDER_BY_PRIMARY, OPT_COUNT,
|
2004-11-15 13:40:32 +01:00
|
|
|
#ifdef HAVE_NDBCLUSTER_DB
|
2005-05-06 10:39:30 +02:00
|
|
|
OPT_NDBCLUSTER, OPT_NDB_CONNECTSTRING,
|
2004-11-15 13:40:32 +01:00
|
|
|
#endif
|
2005-07-31 11:49:55 +02:00
|
|
|
OPT_TRIGGERS,
|
2005-08-26 14:56:52 +02:00
|
|
|
OPT_IGNORE_TABLE,OPT_INSERT_IGNORE,OPT_SHOW_WARNINGS,OPT_DROP_DATABASE,
|
2006-11-20 21:42:06 +01:00
|
|
|
OPT_TZ_UTC, OPT_AUTO_CLOSE, OPT_SSL_VERIFY_SERVER_CERT,
|
|
|
|
OPT_DEBUG_INFO
|
2004-02-09 12:31:03 +01:00
|
|
|
};
|