D.S

dev.mysql.com

MySQL: client/mysqltest.cc File Reference

MySQL: client/mysqltest.cc File Reference MySQL  8.0.0 Source Code Documentation Main Page Related Pages Modules Namespaces Classes Files File List File Members Classes | Macros | Typedefs | Enumerations | Functions | Variables mysqltest.cc File Reference #include " client_priv.h " #include " my_default.h " #include <mysql_version.h> #include <mysqld_error.h> #include < sql_common.h > #include < m_ctype.h > #include < my_dir.h > #include < hash.h > #include <stdarg.h> #include < violite.h > #include "my_regex.h" #include " my_thread_local.h " #include " mysql/service_my_snprintf.h " #include <sys/wait.h> #include <signal.h> #include < my_stacktrace.h > #include < welcome_copyright_notice.h > #include <string> #include <algorithm> #include <functional> #include " prealloced_array.h " #include " template_utils.h " #include " sslopt-vars.h " #include " sslopt-longopts.h " #include < sslopt-case.h > Classes struct   property   struct   st_block   struct   st_test_file   struct   Parser   struct   MasterPos   struct   VAR   struct   st_connection   struct   st_match_err   struct   st_expected_errors   struct   st_command   struct   st_regex   struct   st_replace_regex   class   LogFile   struct   command_arg   struct   st_error   struct   st_pointer_array   struct   st_replace   struct   st_replace_found   struct   st_rep_set   struct   st_rep_sets   struct   st_found_set   struct   st_follow   class   Comp_lines   Macros #define  MTEST_VERSION    "3.3"   #define  SIGNAL_FMT    "signal %d"   #define  MAX_VAR_NAME_LENGTH    256   #define  MAX_COLUMNS    256   #define  MAX_EMBEDDED_SERVER_ARGS    64   #define  MAX_DELIMITER_LENGTH    16   #define  DEFAULT_MAX_CONN    128   #define  QUERY_SEND_FLAG    1   #define  QUERY_REAP_FLAG    2   #define  APPEND_TYPE (type)   #define  do_send_query (cn, q, q_len)    mysql_send_query (&cn-> mysql , q, static_cast< ulong >(q_len))   #define  do_read_query_result (cn)    mysql_read_query_result (&cn-> mysql )   #define  MAX_QUERY    (256*1024*2) /* 256K -- a test in sp-big is >128K */   #define  PARSE_REGEX_ARG   #define  SECURE_REG_BUF   #define  WORD_BIT    (8*sizeof( uint ))   #define  SET_MALLOC_HUNC    64   #define  LAST_CHAR_CODE    259   #define  PC_MALLOC    256 /* Bytes for pointers */   #define  PS_MALLOC    512 /* Bytes for data */   Typedefs typedef Prealloced_array < st_command *, 1024 >  Q_lines   typedef struct st_pointer_array   POINTER_ARRAY   typedef struct st_replace   REPLACE   typedef struct st_replace_found   REPLACE_STRING   typedef struct st_rep_set   REP_SET   typedef struct st_rep_sets   REP_SETS   typedef struct st_found_set   FOUND_SET   typedef struct st_follow   FOLLOWS   Enumerations enum   {    OPT_PS_PROTOCOL =OPT_MAX_CLIENT_OPTION, OPT_SP_PROTOCOL , OPT_NO_SKIP , OPT_CURSOR_PROTOCOL ,    OPT_VIEW_PROTOCOL , OPT_MAX_CONNECT_RETRIES , OPT_MAX_CONNECTIONS , OPT_MARK_PROGRESS ,    OPT_LOG_DIR , OPT_TAIL_LINES , OPT_RESULT_FORMAT_VERSION , OPT_TRACE_PROTOCOL ,    OPT_EXPLAIN_PROTOCOL , OPT_JSON_EXPLAIN_PROTOCOL , OPT_TRACE_EXEC }   enum   enum_prop {    P_ABORT = 0, P_CONNECT , P_INFO , P_SESSION_TRACK ,    P_META , P_PS , P_QUERY , P_RESULT ,    P_WARN , P_MAX }   enum   block_cmd { cmd_none , cmd_if , cmd_while }   enum   enum_commands {    Q_CONNECTION =1, Q_QUERY , Q_CONNECT , Q_SLEEP ,    Q_REAL_SLEEP , Q_INC , Q_DEC , Q_SOURCE ,    Q_DISCONNECT , Q_LET , Q_ECHO , Q_WHILE ,    Q_END_BLOCK , Q_SYSTEM , Q_RESULT , Q_REQUIRE ,    Q_SAVE_MASTER_POS , Q_SYNC_WITH_MASTER , Q_SYNC_SLAVE_WITH_MASTER , Q_ERROR ,    Q_SEND , Q_REAP , Q_DIRTY_CLOSE , Q_REPLACE ,    Q_REPLACE_COLUMN , Q_PING , Q_EVAL , Q_EVAL_RESULT ,    Q_ENABLE_QUERY_LOG , Q_DISABLE_QUERY_LOG , Q_ENABLE_RESULT_LOG , Q_DISABLE_RESULT_LOG ,    Q_ENABLE_CONNECT_LOG , Q_DISABLE_CONNECT_LOG , Q_WAIT_FOR_SLAVE_TO_STOP , Q_ENABLE_WARNINGS ,    Q_DISABLE_WARNINGS , Q_ENABLE_INFO , Q_DISABLE_INFO , Q_ENABLE_SESSION_TRACK_INFO ,    Q_DISABLE_SESSION_TRACK_INFO , Q_ENABLE_METADATA , Q_DISABLE_METADATA , Q_EXEC ,    Q_EXECW , Q_DELIMITER , Q_DISABLE_ABORT_ON_ERROR , Q_ENABLE_ABORT_ON_ERROR ,    Q_DISPLAY_VERTICAL_RESULTS , Q_DISPLAY_HORIZONTAL_RESULTS , Q_QUERY_VERTICAL , Q_QUERY_HORIZONTAL ,    Q_SORTED_RESULT , Q_LOWERCASE , Q_START_TIMER , Q_END_TIMER ,    Q_CHARACTER_SET , Q_DISABLE_PS_PROTOCOL , Q_ENABLE_PS_PROTOCOL , Q_DISABLE_RECONNECT ,    Q_ENABLE_RECONNECT , Q_IF , Q_DISABLE_PARSING , Q_ENABLE_PARSING ,    Q_REPLACE_REGEX , Q_REMOVE_FILE , Q_FILE_EXIST , Q_WRITE_FILE ,    Q_COPY_FILE , Q_PERL , Q_DIE , Q_EXIT ,    Q_SKIP , Q_CHMOD_FILE , Q_APPEND_FILE , Q_CAT_FILE ,    Q_DIFF_FILES , Q_SEND_QUIT , Q_CHANGE_USER , Q_MKDIR ,    Q_RMDIR , Q_FORCE_RMDIR , Q_LIST_FILES , Q_LIST_FILES_WRITE_FILE ,    Q_LIST_FILES_APPEND_FILE , Q_SEND_SHUTDOWN , Q_SHUTDOWN_SERVER , Q_RESULT_FORMAT_VERSION ,    Q_MOVE_FILE , Q_REMOVE_FILES_WILDCARD , Q_COPY_FILES_WILDCARD , Q_SEND_EVAL ,    Q_OUTPUT , Q_RESET_CONNECTION , Q_UNKNOWN , Q_COMMENT ,    Q_COMMENT_WITH_COMMAND , Q_EMPTY_LINE }   enum   match_err_type {