YoushouldhavereceivedacopyoftheGNUGeneralPublicLicense alongwiththisprogram;ifnot,writetotheFreeSoftware
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1335 USA */
/* sql type stored in .frm files for virtual fields */ #define MYSQL_TYPE_VIRTUAL 245 /* Lengthofrandomstringsentbyserveronhandshake;thisisalsolengthof obfuscatedpassword,receivedfromclient
*/ #define SCRAMBLE_LENGTH 20 #define SCRAMBLE_LENGTH_323 8 /* length of password stored in the db: new passwords are preceded with '*' */ #define SCRAMBLED_PASSWORD_CHAR_LENGTH (SCRAMBLE_LENGTH*2+1) #define SCRAMBLED_PASSWORD_CHAR_LENGTH_323 (SCRAMBLE_LENGTH_323*2)
#define NOT_NULL_FLAG 1U /* Field can't be NULL */ #define PRI_KEY_FLAG 2U /* Field is part of a primary key */ #define UNIQUE_KEY_FLAG 4U /* Field is part of a unique key */ #define MULTIPLE_KEY_FLAG 8U /* Field is part of a key */ #define BLOB_FLAG 16U /* Field is a blob */ #define UNSIGNED_FLAG 32U /* Field is unsigned */ #define ZEROFILL_FLAG 64U /* Field is zerofill */ #define BINARY_FLAG 128U /* Field is binary */
/* The following are only sent to new clients */ #define ENUM_FLAG 256U /* field is an enum */ #define AUTO_INCREMENT_FLAG 512U /* field is a autoincrement field */ #define TIMESTAMP_FLAG 1024U /* Field is a timestamp */ #define SET_FLAG 2048U /* field is a set */ #define NO_DEFAULT_VALUE_FLAG 4096U /* Field doesn't have default value */ #define ON_UPDATE_NOW_FLAG 8192U /* Field is set to NOW on UPDATE */ #define NUM_FLAG 32768U /* Field is num (for clients) */ #define PART_KEY_FLAG 16384U /* Intern; Part of some key */ #define GROUP_FLAG 32768U /* Intern: Group field */ #define CONTEXT_COLLATION_FLAG 131072U /* Intern: Used by sql_yacc */ #define GET_FIXED_FIELDS_FLAG (1U << 18) /* Used to get fields in item tree */ #define FIELD_IN_PART_FUNC_FLAG (1U << 19)/* Field part of partition func */ #define PART_INDIRECT_KEY_FLAG (1U << 20)
/** Intern:FieldinTABLEobjectfornewversionofalteredtable, whichparticipatesinanewlyaddedindex.
*/ #define FIELD_IN_ADD_INDEX (1U << 20) #define FIELD_IS_RENAMED (1U << 21) /* Intern: Field is being renamed */ #define FIELD_FLAGS_STORAGE_MEDIA 22/* Field storage media, bit 22-23 */ #define FIELD_FLAGS_STORAGE_MEDIA_MASK (3U << FIELD_FLAGS_STORAGE_MEDIA) #define FIELD_FLAGS_COLUMN_FORMAT 24/* Field column format, bit 24-25 */ #define FIELD_FLAGS_COLUMN_FORMAT_MASK (3U << FIELD_FLAGS_COLUMN_FORMAT) #define FIELD_IS_DROPPED (1U << 26) /* Intern: Field is being dropped */
#define VERS_ROW_START (1 << 27) /* autogenerated column declared with `generatedalwaysasrowstart`
(see II.a SQL Standard) */ #define VERS_ROW_END (1 << 28) /* autogenerated column declared with `generatedalwaysasrowend`
(see II.a SQL Standard).*/ #define VERS_SYSTEM_FIELD (VERS_ROW_START | VERS_ROW_END) #define VERS_UPDATE_UNVERSIONED_FLAG (1 << 29) /* column that doesn't support systemversioningwhentable
itself supports it*/ #define LONG_UNIQUE_HASH_FIELD (1<< 30) /* This field will store hash for unique
column */ #define FIELD_PART_OF_TMP_UNIQUE (1<< 31) /* part of an unique constrain
for a tmporary table*/
#define REFRESH_GRANT (1ULL << 0) /* Refresh grant tables */ #define REFRESH_LOG (1ULL << 1) /* Start on new log file */ #define REFRESH_TABLES (1ULL << 2) /* close all tables */ #define REFRESH_HOSTS (1ULL << 3) /* Flush host cache */ #define REFRESH_STATUS (1ULL << 4) /* Flush status variables */ #define REFRESH_THREADS (1ULL << 5) /* Flush thread cache */ #define REFRESH_SLAVE (1ULL << 6) /* Reset master info and restart
slave thread */ #define REFRESH_MASTER (1ULL << 7) /* Remove all bin logs in the index
and truncate the index */
/* The following can't be set with mysql_refresh() */ #define REFRESH_ERROR_LOG (1ULL << 8) /* Rotate only the error log */ #define REFRESH_ENGINE_LOG (1ULL << 9) /* Flush all storage engine logs */ #define REFRESH_BINARY_LOG (1ULL << 10) /* Flush the binary log */ #define REFRESH_RELAY_LOG (1ULL << 11) /* Flush the relay log */ #define REFRESH_GENERAL_LOG (1ULL << 12) /* Flush the general log */ #define REFRESH_SLOW_LOG (1ULL << 13) /* Flush the slow query log */
#define REFRESH_READ_LOCK (1ULL << 14) /* Lock tables for read */ #define REFRESH_CHECKPOINT (1ULL << 15) /* With REFRESH_READ_LOCK: block checkpoints too */
#define MYSQL_ERRMSG_SIZE 512 #define NET_READ_TIMEOUT 30/* Timeout on read */ #define NET_WRITE_TIMEOUT 60/* Timeout on write */ #define NET_WAIT_TIMEOUT 8*60*60/* Wait for new query */
struct st_vio; /* Only C */ typedefstruct st_vio Vio;
#define MAX_TINYINT_WIDTH 3/* Max width for a TINY w.o. sign */ #define MAX_SMALLINT_WIDTH 5/* Max width for a SHORT w.o. sign */ #define MAX_MEDIUMINT_WIDTH 8/* Max width for a INT24 w.o. sign */ #define MAX_INT_WIDTH 10/* Max width for a LONG w.o. sign */ #define MAX_BIGINT_WIDTH 20/* Max width for a LONGLONG */ #define MAX_CHAR_WIDTH 255/* Max length for a CHAR column */ #define MYSQL_UDF_MAX_RESULT_LENGTH 255/* Max length for a UDF result */ #define MAX_BLOB_WIDTH 16777216/* Default width for blob */
typedefstruct st_net { #if !defined(CHECK_EMBEDDED_DIFFERENCES) || !defined(EMBEDDED_LIBRARY)
Vio *vio; unsignedchar *buff,*buff_end,*write_pos,*read_pos;
my_socket fd; /* For Perl DBI/dbd */ /* Thefollowingvariableissetifwearedoingseveralqueriesinone command(asinLOADTABLE...FROMMASTER), anddonotwanttoconfusetheclientwithOKatthewrongtime
*/ unsignedlong remain_in_buf,length, buf_length, where_b; unsignedlong max_packet,max_packet_size; unsignedint pkt_nr,compress_pkt_nr; unsignedint write_timeout, read_timeout, retry_count; int fcntl; unsignedint *return_status; unsignedchar reading_or_writing; char save_char; char net_skip_rest_factor;
my_bool thread_specific_malloc; unsignedchar compress;
my_bool pkt_nr_can_be_reset; /* Bits: NET_PROXY_PROTOCOL, NET_PROXY_PROTOCOL_CONNECT_ERRORS */
my_bool using_proxy_protocol; #define NET_PROXY_PROTOCOL 1 #define NET_PROXY_PROTOCOL_CONNECT_ERRORS 2 /* Pointertoqueryobjectinquerycache,donotequalNULL(0)for queriesincachethathavenotstoreditsresultsyet
*/ #endif void *thd; /* Used by MariaDB server to avoid calling current_thd */ unsignedint last_errno; unsignedchar error;
my_bool unused4; /* Please remove with the next incompatible ABI change. */
my_bool unused5; /* Please remove with the next incompatible ABI change. */ /** Client library error message buffer. Actually belongs to struct MYSQL. */ char last_error[MYSQL_ERRMSG_SIZE]; /** Client library sqlstate buffer. Set along with the error message. */ char sqlstate[SQLSTATE_LENGTH+1]; void *extension;
} NET;
typedefstruct st_udf_args
{ unsignedint arg_count; /* Number of arguments */ enum Item_result *arg_type; /* Pointer to item_results */ char **args; /* Pointer to argument */ unsignedlong *lengths; /* Length of string arguments */ char *maybe_null; /* Set to 1 for all maybe_null args */ constchar **attributes; /* Pointer to attribute name */ unsignedlong *attribute_lengths; /* Length of attribute arguments */ void *extension;
} UDF_ARGS;
/* This holds information about the result */
typedefstruct st_udf_init
{
my_bool maybe_null; /* 1 if function can return NULL */ unsignedint decimals; /* for real functions */ unsignedlong max_length; /* For string functions */ char *ptr; /* free pointer for function data */
my_bool const_item; /* 1 if function always returns the same value */ void *extension;
} UDF_INIT; /* TODO:addanotionfordeterminismoftheUDF. SeeItem_udf_func::update_used_tables()
*/
/* Constants when using compression */ #define NET_HEADER_SIZE 4/* standard header size */ #define COMP_HEADER_SIZE 3/* compression header extra size */
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.