CMGDK r49-rc2
组合类型 | 宏定义 | 类型定义 | 枚举 | 函数
K:/CMGDKv18/SDK/Source/SQL/MySQL/include/mysql_com.h文件参考

浏览该文件的源代码。

组合类型

struct  st_net
struct  st_udf_args
struct  st_udf_init

宏定义

#define HOSTNAME_LENGTH   60
#define SYSTEM_CHARSET_MBMAXLEN   4
#define NAME_CHAR_LEN   64
#define USERNAME_CHAR_LENGTH   16
#define NAME_LEN   (NAME_CHAR_LEN*SYSTEM_CHARSET_MBMAXLEN)
#define USERNAME_LENGTH   (USERNAME_CHAR_LENGTH*SYSTEM_CHARSET_MBMAXLEN)
#define SERVER_VERSION_LENGTH   60
#define SQLSTATE_LENGTH   5
#define TABLE_COMMENT_INLINE_MAXLEN   180
#define TABLE_COMMENT_MAXLEN   2048
#define COLUMN_COMMENT_MAXLEN   1024
#define INDEX_COMMENT_MAXLEN   1024
#define USER_HOST_BUFF_SIZE   HOSTNAME_LENGTH + USERNAME_LENGTH + 2
#define LOCAL_HOST   "localhost"
#define LOCAL_HOST_NAMEDPIPE   "."
#define SCRAMBLE_LENGTH   20
#define SCRAMBLE_LENGTH_323   8
#define SCRAMBLED_PASSWORD_CHAR_LENGTH   (SCRAMBLE_LENGTH*2+1)
#define SCRAMBLED_PASSWORD_CHAR_LENGTH_323   (SCRAMBLE_LENGTH_323*2)
#define NOT_NULL_FLAG   1
#define PRI_KEY_FLAG   2
#define UNIQUE_KEY_FLAG   4
#define MULTIPLE_KEY_FLAG   8
#define BLOB_FLAG   16
#define UNSIGNED_FLAG   32
#define ZEROFILL_FLAG   64
#define BINARY_FLAG   128
#define ENUM_FLAG   256
#define AUTO_INCREMENT_FLAG   512
#define TIMESTAMP_FLAG   1024
#define SET_FLAG   2048
#define NO_DEFAULT_VALUE_FLAG   4096
#define ON_UPDATE_NOW_FLAG   8192
#define NUM_FLAG   32768
#define PART_KEY_FLAG   16384
#define GROUP_FLAG   32768
#define UNIQUE_FLAG   65536
#define BINCMP_FLAG   131072
#define GET_FIXED_FIELDS_FLAG   (1 << 18)
#define FIELD_IN_PART_FUNC_FLAG   (1 << 19)
#define FIELD_IN_ADD_INDEX   (1<< 20)
#define FIELD_IS_RENAMED   (1<< 21)
#define FIELD_STORAGE_FLAGS   22
#define COLUMN_FORMAT_FLAGS   25
#define REFRESH_GRANT   1
#define REFRESH_LOG   2
#define REFRESH_TABLES   4
#define REFRESH_HOSTS   8
#define REFRESH_STATUS   16
#define REFRESH_THREADS   32
#define REFRESH_SLAVE   64
#define REFRESH_MASTER   128
#define REFRESH_READ_LOCK   16384
#define REFRESH_FAST   32768
#define REFRESH_QUERY_CACHE   65536
#define REFRESH_QUERY_CACHE_FREE   0x20000L
#define REFRESH_DES_KEY_FILE   0x40000L
#define REFRESH_USER_RESOURCES   0x80000L
#define REFRESH_BACKUP_LOG   0x200000L
#define CLIENT_LONG_PASSWORD   1
#define CLIENT_FOUND_ROWS   2
#define CLIENT_LONG_FLAG   4
#define CLIENT_CONNECT_WITH_DB   8
#define CLIENT_NO_SCHEMA   16
#define CLIENT_COMPRESS   32
#define CLIENT_ODBC   64
#define CLIENT_LOCAL_FILES   128
#define CLIENT_IGNORE_SPACE   256
#define CLIENT_PROTOCOL_41   512
#define CLIENT_INTERACTIVE   1024
#define CLIENT_SSL   2048
#define CLIENT_IGNORE_SIGPIPE   4096
#define CLIENT_TRANSACTIONS   8192
#define CLIENT_RESERVED   16384
#define CLIENT_SECURE_CONNECTION   32768
#define CLIENT_MULTI_STATEMENTS   (1UL << 16)
#define CLIENT_MULTI_RESULTS   (1UL << 17)
#define CLIENT_PS_MULTI_RESULTS   (1UL << 18)
#define CLIENT_SSL_VERIFY_SERVER_CERT   (1UL << 30)
#define CLIENT_REMEMBER_OPTIONS   (1UL << 31)
#define CLIENT_ALL_FLAGS
#define CLIENT_BASIC_FLAGS
#define SERVER_STATUS_IN_TRANS   1
#define SERVER_STATUS_AUTOCOMMIT   2
#define SERVER_MORE_RESULTS_EXISTS   8
#define SERVER_QUERY_NO_GOOD_INDEX_USED   16
#define SERVER_QUERY_NO_INDEX_USED   32
#define SERVER_STATUS_CURSOR_EXISTS   64
#define SERVER_STATUS_LAST_ROW_SENT   128
#define SERVER_STATUS_DB_DROPPED   256
#define SERVER_STATUS_NO_BACKSLASH_ESCAPES   512
#define SERVER_STATUS_METADATA_CHANGED   1024
#define SERVER_QUERY_WAS_SLOW   2048
#define SERVER_PS_OUT_PARAMS   4096
#define SERVER_STATUS_CLEAR_SET
#define MYSQL_ERRMSG_SIZE   512
#define NET_READ_TIMEOUT   30
#define NET_WRITE_TIMEOUT   60
#define NET_WAIT_TIMEOUT   8*60*60
#define ONLY_KILL_QUERY   1
#define MAX_TINYINT_WIDTH   3
#define MAX_SMALLINT_WIDTH   5
#define MAX_MEDIUMINT_WIDTH   8
#define MAX_INT_WIDTH   10
#define MAX_BIGINT_WIDTH   20
#define MAX_CHAR_WIDTH   255
#define MAX_BLOB_WIDTH   16777216
#define packet_error   (~(unsigned long) 0)
#define CLIENT_MULTI_QUERIES   CLIENT_MULTI_STATEMENTS
#define FIELD_TYPE_DECIMAL   MYSQL_TYPE_DECIMAL
#define FIELD_TYPE_NEWDECIMAL   MYSQL_TYPE_NEWDECIMAL
#define FIELD_TYPE_TINY   MYSQL_TYPE_TINY
#define FIELD_TYPE_SHORT   MYSQL_TYPE_SHORT
#define FIELD_TYPE_LONG   MYSQL_TYPE_LONG
#define FIELD_TYPE_FLOAT   MYSQL_TYPE_FLOAT
#define FIELD_TYPE_DOUBLE   MYSQL_TYPE_DOUBLE
#define FIELD_TYPE_NULL   MYSQL_TYPE_NULL
#define FIELD_TYPE_TIMESTAMP   MYSQL_TYPE_TIMESTAMP
#define FIELD_TYPE_LONGLONG   MYSQL_TYPE_LONGLONG
#define FIELD_TYPE_INT24   MYSQL_TYPE_INT24
#define FIELD_TYPE_DATE   MYSQL_TYPE_DATE
#define FIELD_TYPE_TIME   MYSQL_TYPE_TIME
#define FIELD_TYPE_DATETIME   MYSQL_TYPE_DATETIME
#define FIELD_TYPE_YEAR   MYSQL_TYPE_YEAR
#define FIELD_TYPE_NEWDATE   MYSQL_TYPE_NEWDATE
#define FIELD_TYPE_ENUM   MYSQL_TYPE_ENUM
#define FIELD_TYPE_SET   MYSQL_TYPE_SET
#define FIELD_TYPE_TINY_BLOB   MYSQL_TYPE_TINY_BLOB
#define FIELD_TYPE_MEDIUM_BLOB   MYSQL_TYPE_MEDIUM_BLOB
#define FIELD_TYPE_LONG_BLOB   MYSQL_TYPE_LONG_BLOB
#define FIELD_TYPE_BLOB   MYSQL_TYPE_BLOB
#define FIELD_TYPE_VAR_STRING   MYSQL_TYPE_VAR_STRING
#define FIELD_TYPE_STRING   MYSQL_TYPE_STRING
#define FIELD_TYPE_CHAR   MYSQL_TYPE_TINY
#define FIELD_TYPE_INTERVAL   MYSQL_TYPE_ENUM
#define FIELD_TYPE_GEOMETRY   MYSQL_TYPE_GEOMETRY
#define FIELD_TYPE_BIT   MYSQL_TYPE_BIT
#define MYSQL_SHUTDOWN_KILLABLE_CONNECT   (unsigned char)(1 << 0)
#define MYSQL_SHUTDOWN_KILLABLE_TRANS   (unsigned char)(1 << 1)
#define MYSQL_SHUTDOWN_KILLABLE_LOCK_TABLE   (unsigned char)(1 << 2)
#define MYSQL_SHUTDOWN_KILLABLE_UPDATE   (unsigned char)(1 << 3)
#define net_new_transaction(net)   ((net)->pkt_nr=0)
#define NET_HEADER_SIZE   4
#define COMP_HEADER_SIZE   3
#define NULL_LENGTH   ((unsigned long) ~0)
#define MYSQL_STMT_HEADER   4
#define MYSQL_LONG_DATA_HEADER   6
#define NOT_FIXED_DEC   31

类型定义

typedef struct st_vio Vio
typedef struct st_net NET
typedef struct st_udf_args UDF_ARGS
typedef struct st_udf_init UDF_INIT

枚举

enum  enum_server_command {
  COM_SLEEP, COM_QUIT, COM_INIT_DB, COM_QUERY,
  COM_FIELD_LIST, COM_CREATE_DB, COM_DROP_DB, COM_REFRESH,
  COM_SHUTDOWN, COM_STATISTICS, COM_PROCESS_INFO, COM_CONNECT,
  COM_PROCESS_KILL, COM_DEBUG, COM_PING, COM_TIME,
  COM_DELAYED_INSERT, COM_CHANGE_USER, COM_BINLOG_DUMP, COM_TABLE_DUMP,
  COM_CONNECT_OUT, COM_REGISTER_SLAVE, COM_STMT_PREPARE, COM_STMT_EXECUTE,
  COM_STMT_SEND_LONG_DATA, COM_STMT_CLOSE, COM_STMT_RESET, COM_SET_OPTION,
  COM_STMT_FETCH, COM_DAEMON, COM_END
}
enum  enum_field_types {
  MYSQL_TYPE_DECIMAL, MYSQL_TYPE_TINY, MYSQL_TYPE_SHORT, MYSQL_TYPE_LONG,
  MYSQL_TYPE_FLOAT, MYSQL_TYPE_DOUBLE, MYSQL_TYPE_NULL, MYSQL_TYPE_TIMESTAMP,
  MYSQL_TYPE_LONGLONG, MYSQL_TYPE_INT24, MYSQL_TYPE_DATE, MYSQL_TYPE_TIME,
  MYSQL_TYPE_DATETIME, MYSQL_TYPE_YEAR, MYSQL_TYPE_NEWDATE, MYSQL_TYPE_VARCHAR,
  MYSQL_TYPE_BIT, MYSQL_TYPE_NEWDECIMAL = 246, MYSQL_TYPE_ENUM = 247, MYSQL_TYPE_SET = 248,
  MYSQL_TYPE_TINY_BLOB = 249, MYSQL_TYPE_MEDIUM_BLOB = 250, MYSQL_TYPE_LONG_BLOB = 251, MYSQL_TYPE_BLOB = 252,
  MYSQL_TYPE_VAR_STRING = 253, MYSQL_TYPE_STRING = 254, MYSQL_TYPE_GEOMETRY = 255, MAX_NO_FIELD_TYPES
}
enum  mysql_enum_shutdown_level {
  SHUTDOWN_DEFAULT = 0, SHUTDOWN_WAIT_CONNECTIONS = MYSQL_SHUTDOWN_KILLABLE_CONNECT, SHUTDOWN_WAIT_TRANSACTIONS = MYSQL_SHUTDOWN_KILLABLE_TRANS, SHUTDOWN_WAIT_UPDATES = MYSQL_SHUTDOWN_KILLABLE_UPDATE,
  SHUTDOWN_WAIT_ALL_BUFFERS = (MYSQL_SHUTDOWN_KILLABLE_UPDATE << 1), SHUTDOWN_WAIT_CRITICAL_BUFFERS = (MYSQL_SHUTDOWN_KILLABLE_UPDATE << 1) + 1, KILL_CONNECTION = 255
}
enum  enum_cursor_type { CURSOR_TYPE_NO_CURSOR = 0, CURSOR_TYPE_READ_ONLY = 1, CURSOR_TYPE_FOR_UPDATE = 2, CURSOR_TYPE_SCROLLABLE = 4 }
enum  enum_mysql_set_option { MYSQL_OPTION_MULTI_STATEMENTS_ON, MYSQL_OPTION_MULTI_STATEMENTS_OFF }
enum  Item_result {
  STRING_RESULT = 0, REAL_RESULT, INT_RESULT, ROW_RESULT,
  DECIMAL_RESULT
}

函数

my_bool my_net_init (NET *net, Vio *vio)
void my_net_local_init (NET *net)
void net_end (NET *net)
void net_clear (NET *net, my_bool clear_buffer)
my_bool net_realloc (NET *net, size_t length)
my_bool net_flush (NET *net)
my_bool my_net_write (NET *net, const unsigned char *packet, size_t len)
my_bool net_write_command (NET *net, unsigned char command, const unsigned char *header, size_t head_len, const unsigned char *packet, size_t len)
int net_real_write (NET *net, const unsigned char *packet, size_t len)
unsigned long my_net_read (NET *net)
int my_connect (my_socket s, const struct sockaddr *name, unsigned int namelen, unsigned int timeout)
void create_random_string (char *to, unsigned int length, struct my_rnd_struct *rand_st)
void hash_password (unsigned long *to, const char *password, unsigned int password_len)
void make_scrambled_password_323 (char *to, const char *password)
void scramble_323 (char *to, const char *message, const char *password)
my_bool check_scramble_323 (const char *, const char *message, unsigned long *salt)
void get_salt_from_password_323 (unsigned long *res, const char *password)
void make_password_from_salt_323 (char *to, const unsigned long *salt)
void make_scrambled_password (char *to, const char *password)
void scramble (char *to, const char *message, const char *password)
my_bool check_scramble (const char *reply, const char *message, const unsigned char *hash_stage2)
void get_salt_from_password (unsigned char *res, const char *password)
void make_password_from_salt (char *to, const unsigned char *hash_stage2)
char * octet2hex (char *to, const char *str, unsigned int len)
char * get_tty_password (const char *opt_message)
const char * mysql_errno_to_sqlstate (unsigned int mysql_errno)
my_bool my_thread_init (void)
void my_thread_end (void)

宏定义文档

#define AUTO_INCREMENT_FLAG   512
#define BINARY_FLAG   128
#define BINCMP_FLAG   131072
#define BLOB_FLAG   16
#define CLIENT_ALL_FLAGS
#define CLIENT_BASIC_FLAGS
#define CLIENT_COMPRESS   32
#define CLIENT_CONNECT_WITH_DB   8
#define CLIENT_FOUND_ROWS   2
#define CLIENT_IGNORE_SIGPIPE   4096
#define CLIENT_IGNORE_SPACE   256
#define CLIENT_INTERACTIVE   1024
#define CLIENT_LOCAL_FILES   128
#define CLIENT_LONG_FLAG   4
#define CLIENT_LONG_PASSWORD   1
#define CLIENT_MULTI_QUERIES   CLIENT_MULTI_STATEMENTS
#define CLIENT_MULTI_RESULTS   (1UL << 17)
#define CLIENT_MULTI_STATEMENTS   (1UL << 16)
#define CLIENT_NO_SCHEMA   16
#define CLIENT_ODBC   64
#define CLIENT_PROTOCOL_41   512
#define CLIENT_PS_MULTI_RESULTS   (1UL << 18)
#define CLIENT_REMEMBER_OPTIONS   (1UL << 31)
#define CLIENT_RESERVED   16384
#define CLIENT_SECURE_CONNECTION   32768
#define CLIENT_SSL   2048
#define CLIENT_SSL_VERIFY_SERVER_CERT   (1UL << 30)
#define CLIENT_TRANSACTIONS   8192
#define COLUMN_COMMENT_MAXLEN   1024
#define COLUMN_FORMAT_FLAGS   25
#define COMP_HEADER_SIZE   3
#define ENUM_FLAG   256
#define FIELD_IN_ADD_INDEX   (1<< 20)
#define FIELD_IN_PART_FUNC_FLAG   (1 << 19)
#define FIELD_IS_RENAMED   (1<< 21)
#define FIELD_STORAGE_FLAGS   22
#define FIELD_TYPE_BIT   MYSQL_TYPE_BIT
#define FIELD_TYPE_BLOB   MYSQL_TYPE_BLOB
#define FIELD_TYPE_CHAR   MYSQL_TYPE_TINY
#define FIELD_TYPE_DATE   MYSQL_TYPE_DATE
#define FIELD_TYPE_DATETIME   MYSQL_TYPE_DATETIME
#define FIELD_TYPE_DECIMAL   MYSQL_TYPE_DECIMAL
#define FIELD_TYPE_DOUBLE   MYSQL_TYPE_DOUBLE
#define FIELD_TYPE_ENUM   MYSQL_TYPE_ENUM
#define FIELD_TYPE_FLOAT   MYSQL_TYPE_FLOAT
#define FIELD_TYPE_GEOMETRY   MYSQL_TYPE_GEOMETRY
#define FIELD_TYPE_INT24   MYSQL_TYPE_INT24
#define FIELD_TYPE_INTERVAL   MYSQL_TYPE_ENUM
#define FIELD_TYPE_LONG   MYSQL_TYPE_LONG
#define FIELD_TYPE_LONG_BLOB   MYSQL_TYPE_LONG_BLOB
#define FIELD_TYPE_LONGLONG   MYSQL_TYPE_LONGLONG
#define FIELD_TYPE_MEDIUM_BLOB   MYSQL_TYPE_MEDIUM_BLOB
#define FIELD_TYPE_NEWDATE   MYSQL_TYPE_NEWDATE
#define FIELD_TYPE_NEWDECIMAL   MYSQL_TYPE_NEWDECIMAL
#define FIELD_TYPE_NULL   MYSQL_TYPE_NULL
#define FIELD_TYPE_SET   MYSQL_TYPE_SET
#define FIELD_TYPE_SHORT   MYSQL_TYPE_SHORT
#define FIELD_TYPE_STRING   MYSQL_TYPE_STRING
#define FIELD_TYPE_TIME   MYSQL_TYPE_TIME
#define FIELD_TYPE_TIMESTAMP   MYSQL_TYPE_TIMESTAMP
#define FIELD_TYPE_TINY   MYSQL_TYPE_TINY
#define FIELD_TYPE_TINY_BLOB   MYSQL_TYPE_TINY_BLOB
#define FIELD_TYPE_VAR_STRING   MYSQL_TYPE_VAR_STRING
#define FIELD_TYPE_YEAR   MYSQL_TYPE_YEAR
#define GET_FIXED_FIELDS_FLAG   (1 << 18)
#define GROUP_FLAG   32768
#define HOSTNAME_LENGTH   60
#define INDEX_COMMENT_MAXLEN   1024
#define LOCAL_HOST   "localhost"
#define LOCAL_HOST_NAMEDPIPE   "."
#define MAX_BIGINT_WIDTH   20
#define MAX_BLOB_WIDTH   16777216
#define MAX_CHAR_WIDTH   255
#define MAX_INT_WIDTH   10
#define MAX_MEDIUMINT_WIDTH   8
#define MAX_SMALLINT_WIDTH   5
#define MAX_TINYINT_WIDTH   3
#define MULTIPLE_KEY_FLAG   8
#define MYSQL_ERRMSG_SIZE   512
#define MYSQL_LONG_DATA_HEADER   6
#define MYSQL_SHUTDOWN_KILLABLE_CONNECT   (unsigned char)(1 << 0)
#define MYSQL_SHUTDOWN_KILLABLE_LOCK_TABLE   (unsigned char)(1 << 2)
#define MYSQL_SHUTDOWN_KILLABLE_TRANS   (unsigned char)(1 << 1)
#define MYSQL_SHUTDOWN_KILLABLE_UPDATE   (unsigned char)(1 << 3)
#define MYSQL_STMT_HEADER   4
#define NAME_CHAR_LEN   64
#define NAME_LEN   (NAME_CHAR_LEN*SYSTEM_CHARSET_MBMAXLEN)
#define NET_HEADER_SIZE   4
#define net_new_transaction (   net)    ((net)->pkt_nr=0)
#define NET_READ_TIMEOUT   30
#define NET_WAIT_TIMEOUT   8*60*60
#define NET_WRITE_TIMEOUT   60
#define NO_DEFAULT_VALUE_FLAG   4096
#define NOT_FIXED_DEC   31
#define NOT_NULL_FLAG   1
#define NULL_LENGTH   ((unsigned long) ~0)
#define NUM_FLAG   32768
#define ON_UPDATE_NOW_FLAG   8192
#define ONLY_KILL_QUERY   1
#define packet_error   (~(unsigned long) 0)
#define PART_KEY_FLAG   16384
#define PRI_KEY_FLAG   2
#define REFRESH_BACKUP_LOG   0x200000L
#define REFRESH_DES_KEY_FILE   0x40000L
#define REFRESH_FAST   32768
#define REFRESH_GRANT   1
#define REFRESH_HOSTS   8
#define REFRESH_LOG   2
#define REFRESH_MASTER   128
#define REFRESH_QUERY_CACHE   65536
#define REFRESH_QUERY_CACHE_FREE   0x20000L
#define REFRESH_READ_LOCK   16384
#define REFRESH_SLAVE   64
#define REFRESH_STATUS   16
#define REFRESH_TABLES   4
#define REFRESH_THREADS   32
#define REFRESH_USER_RESOURCES   0x80000L
#define SCRAMBLE_LENGTH   20
#define SCRAMBLE_LENGTH_323   8
#define SCRAMBLED_PASSWORD_CHAR_LENGTH   (SCRAMBLE_LENGTH*2+1)
#define SCRAMBLED_PASSWORD_CHAR_LENGTH_323   (SCRAMBLE_LENGTH_323*2)
#define SERVER_MORE_RESULTS_EXISTS   8
#define SERVER_PS_OUT_PARAMS   4096

To mark ResultSet containing output parameter values.

#define SERVER_QUERY_NO_GOOD_INDEX_USED   16
#define SERVER_QUERY_NO_INDEX_USED   32
#define SERVER_QUERY_WAS_SLOW   2048
#define SERVER_STATUS_AUTOCOMMIT   2
#define SERVER_STATUS_CLEAR_SET
值:

Server status flags that must be cleared when starting execution of a new SQL statement. Flags from this set are only added to the current server status by the execution engine, but never removed -- the execution engine expects them to disappear automagically by the next command.

#define SERVER_STATUS_CURSOR_EXISTS   64

The server was able to fulfill the clients request and opened a read-only non-scrollable cursor for a query. This flag comes in reply to COM_STMT_EXECUTE and COM_STMT_FETCH commands.

#define SERVER_STATUS_DB_DROPPED   256
#define SERVER_STATUS_IN_TRANS   1
#define SERVER_STATUS_LAST_ROW_SENT   128

This flag is sent when a read-only cursor is exhausted, in reply to COM_STMT_FETCH command.

#define SERVER_STATUS_METADATA_CHANGED   1024

Sent to the client if after a prepared statement reprepare we discovered that the new statement returns a different number of result set columns.

#define SERVER_STATUS_NO_BACKSLASH_ESCAPES   512
#define SERVER_VERSION_LENGTH   60
#define SET_FLAG   2048
#define SQLSTATE_LENGTH   5
#define SYSTEM_CHARSET_MBMAXLEN   4
#define TABLE_COMMENT_INLINE_MAXLEN   180
#define TABLE_COMMENT_MAXLEN   2048
#define TIMESTAMP_FLAG   1024
#define UNIQUE_FLAG   65536
#define UNIQUE_KEY_FLAG   4
#define UNSIGNED_FLAG   32
#define USER_HOST_BUFF_SIZE   HOSTNAME_LENGTH + USERNAME_LENGTH + 2
#define USERNAME_CHAR_LENGTH   16
#define USERNAME_LENGTH   (USERNAME_CHAR_LENGTH*SYSTEM_CHARSET_MBMAXLEN)
#define ZEROFILL_FLAG   64

类型定义文档

typedef struct st_net NET
typedef struct st_udf_args UDF_ARGS
typedef struct st_udf_init UDF_INIT
typedef struct st_vio Vio

枚举类型文档

枚举值:
CURSOR_TYPE_NO_CURSOR 
CURSOR_TYPE_READ_ONLY 
CURSOR_TYPE_FOR_UPDATE 
CURSOR_TYPE_SCROLLABLE 
枚举值:
MYSQL_TYPE_DECIMAL 
MYSQL_TYPE_TINY 
MYSQL_TYPE_SHORT 
MYSQL_TYPE_LONG 
MYSQL_TYPE_FLOAT 
MYSQL_TYPE_DOUBLE 
MYSQL_TYPE_NULL 
MYSQL_TYPE_TIMESTAMP 
MYSQL_TYPE_LONGLONG 
MYSQL_TYPE_INT24 
MYSQL_TYPE_DATE 
MYSQL_TYPE_TIME 
MYSQL_TYPE_DATETIME 
MYSQL_TYPE_YEAR 
MYSQL_TYPE_NEWDATE 
MYSQL_TYPE_VARCHAR 
MYSQL_TYPE_BIT 
MYSQL_TYPE_NEWDECIMAL 
MYSQL_TYPE_ENUM 
MYSQL_TYPE_SET 
MYSQL_TYPE_TINY_BLOB 
MYSQL_TYPE_MEDIUM_BLOB 
MYSQL_TYPE_LONG_BLOB 
MYSQL_TYPE_BLOB 
MYSQL_TYPE_VAR_STRING 
MYSQL_TYPE_STRING 
MYSQL_TYPE_GEOMETRY 
MAX_NO_FIELD_TYPES 
枚举值:
MYSQL_OPTION_MULTI_STATEMENTS_ON 
MYSQL_OPTION_MULTI_STATEMENTS_OFF 
枚举值:
COM_SLEEP 
COM_QUIT 
COM_INIT_DB 
COM_QUERY 
COM_FIELD_LIST 
COM_CREATE_DB 
COM_DROP_DB 
COM_REFRESH 
COM_SHUTDOWN 
COM_STATISTICS 
COM_PROCESS_INFO 
COM_CONNECT 
COM_PROCESS_KILL 
COM_DEBUG 
COM_PING 
COM_TIME 
COM_DELAYED_INSERT 
COM_CHANGE_USER 
COM_BINLOG_DUMP 
COM_TABLE_DUMP 
COM_CONNECT_OUT 
COM_REGISTER_SLAVE 
COM_STMT_PREPARE 
COM_STMT_EXECUTE 
COM_STMT_SEND_LONG_DATA 
COM_STMT_CLOSE 
COM_STMT_RESET 
COM_SET_OPTION 
COM_STMT_FETCH 
COM_DAEMON 
COM_END 
枚举值:
STRING_RESULT 
REAL_RESULT 
INT_RESULT 
ROW_RESULT 
DECIMAL_RESULT 
枚举值:
SHUTDOWN_DEFAULT 
SHUTDOWN_WAIT_CONNECTIONS 
SHUTDOWN_WAIT_TRANSACTIONS 
SHUTDOWN_WAIT_UPDATES 
SHUTDOWN_WAIT_ALL_BUFFERS 
SHUTDOWN_WAIT_CRITICAL_BUFFERS 
KILL_CONNECTION 

函数文档

my_bool check_scramble ( const char *  reply,
const char *  message,
const unsigned char *  hash_stage2 
)
my_bool check_scramble_323 ( const char *  ,
const char *  message,
unsigned long *  salt 
)
void create_random_string ( char *  to,
unsigned int  length,
struct my_rnd_struct rand_st 
)
void get_salt_from_password ( unsigned char *  res,
const char *  password 
)
void get_salt_from_password_323 ( unsigned long *  res,
const char *  password 
)
char* get_tty_password ( const char *  opt_message)
void hash_password ( unsigned long *  to,
const char *  password,
unsigned int  password_len 
)
void make_password_from_salt ( char *  to,
const unsigned char *  hash_stage2 
)
void make_password_from_salt_323 ( char *  to,
const unsigned long *  salt 
)
void make_scrambled_password ( char *  to,
const char *  password 
)
void make_scrambled_password_323 ( char *  to,
const char *  password 
)
int my_connect ( my_socket  s,
const struct sockaddr *  name,
unsigned int  namelen,
unsigned int  timeout 
)
my_bool my_net_init ( NET net,
Vio vio 
)
void my_net_local_init ( NET net)
unsigned long my_net_read ( NET net)
my_bool my_net_write ( NET net,
const unsigned char *  packet,
size_t  len 
)
void my_thread_end ( void  )
my_bool my_thread_init ( void  )
const char* mysql_errno_to_sqlstate ( unsigned int  mysql_errno)
void net_clear ( NET net,
my_bool  clear_buffer 
)
void net_end ( NET net)
my_bool net_flush ( NET net)
int net_real_write ( NET net,
const unsigned char *  packet,
size_t  len 
)
my_bool net_realloc ( NET net,
size_t  length 
)
my_bool net_write_command ( NET net,
unsigned char  command,
const unsigned char *  header,
size_t  head_len,
const unsigned char *  packet,
size_t  len 
)
char* octet2hex ( char *  to,
const char *  str,
unsigned int  len 
)
void scramble ( char *  to,
const char *  message,
const char *  password 
)
void scramble_323 ( char *  to,
const char *  message,
const char *  password 
)
 全部  名字空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义