Main Page | Modules | Class List | Directories | File List | Class Members | File Members | Related Pages

mysql_com.h File Reference

Go to the source code of this file.

Defines

#define NAME_LEN   64
#define HOSTNAME_LENGTH   60
#define USERNAME_LENGTH   16
#define SERVER_VERSION_LENGTH   60
#define SQLSTATE_LENGTH   5
#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 NUM_FLAG   32768
#define PART_KEY_FLAG   16384
#define GROUP_FLAG   32768
#define UNIQUE_FLAG   65536
#define BINCMP_FLAG   131072
#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 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   65536
#define CLIENT_MULTI_RESULTS   131072
#define CLIENT_REMEMBER_OPTIONS   (((ulong) 1) << 31)
#define SERVER_STATUS_IN_TRANS   1
#define SERVER_STATUS_AUTOCOMMIT   2
#define SERVER_STATUS_MORE_RESULTS   4
#define SERVER_MORE_RESULTS_EXISTS   8
#define SERVER_QUERY_NO_GOOD_INDEX_USED   16
#define SERVER_QUERY_NO_INDEX_USED   32
#define SERVER_STATUS_DB_DROPPED   256
#define MYSQL_ERRMSG_SIZE   512
#define NET_READ_TIMEOUT   30
#define NET_WRITE_TIMEOUT   60
#define NET_WAIT_TIMEOUT   8*60*60
#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   8192
#define packet_error   (~(unsigned long) 0)
#define CLIENT_MULTI_QUERIES   CLIENT_MULTI_STATEMENTS
#define FIELD_TYPE_DECIMAL   MYSQL_TYPE_DECIMAL
#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 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

Typedefs

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

Enumerations

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_PREPARE, COM_EXECUTE,
  COM_LONG_DATA, COM_CLOSE_STMT, COM_RESET_STMT, COM_SET_OPTION,
  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_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
}
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_mysql_set_option { MYSQL_OPTION_MULTI_STATEMENTS_ON, MYSQL_OPTION_MULTI_STATEMENTS_OFF }
enum  Item_result { STRING_RESULT, REAL_RESULT, INT_RESULT, ROW_RESULT }

Functions

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 net_realloc (NET *net, unsigned long length)
my_bool net_flush (NET *net)
my_bool my_net_write (NET *net, const char *packet, unsigned long len)
my_bool net_write_command (NET *net, unsigned char command, const char *header, unsigned long head_len, const char *packet, unsigned long len)
int net_real_write (NET *net, const char *packet, unsigned long 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 randominit (struct rand_struct *, unsigned long seed1, unsigned long seed2)
double my_rnd (struct rand_struct *)
void create_random_string (char *to, unsigned int length, struct rand_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 * get_tty_password (char *opt_message)
const char * mysql_errno_to_sqlstate (unsigned int mysql_errno)
my_bool my_init (void)
int load_defaults (const char *conf_file, const char **groups, int *argc, char ***argv)
my_bool my_thread_init (void)
void my_thread_end (void)


Define Documentation

#define AUTO_INCREMENT_FLAG   512
 

Definition at line 77 of file mysql_com.h.

#define BINARY_FLAG   128
 

Definition at line 73 of file mysql_com.h.

#define BINCMP_FLAG   131072
 

Definition at line 84 of file mysql_com.h.

#define BLOB_FLAG   16
 

Definition at line 70 of file mysql_com.h.

#define CLIENT_COMPRESS   32
 

Definition at line 112 of file mysql_com.h.

#define CLIENT_CONNECT_WITH_DB   8
 

Definition at line 110 of file mysql_com.h.

#define CLIENT_FOUND_ROWS   2
 

Definition at line 108 of file mysql_com.h.

#define CLIENT_IGNORE_SIGPIPE   4096
 

Definition at line 119 of file mysql_com.h.

#define CLIENT_IGNORE_SPACE   256
 

Definition at line 115 of file mysql_com.h.

#define CLIENT_INTERACTIVE   1024
 

Definition at line 117 of file mysql_com.h.

#define CLIENT_LOCAL_FILES   128
 

Definition at line 114 of file mysql_com.h.

#define CLIENT_LONG_FLAG   4
 

Definition at line 109 of file mysql_com.h.

#define CLIENT_LONG_PASSWORD   1
 

Definition at line 107 of file mysql_com.h.

#define CLIENT_MULTI_QUERIES   CLIENT_MULTI_STATEMENTS
 

Definition at line 207 of file mysql_com.h.

#define CLIENT_MULTI_RESULTS   131072
 

Definition at line 124 of file mysql_com.h.

#define CLIENT_MULTI_STATEMENTS   65536
 

Definition at line 123 of file mysql_com.h.

#define CLIENT_NO_SCHEMA   16
 

Definition at line 111 of file mysql_com.h.

#define CLIENT_ODBC   64
 

Definition at line 113 of file mysql_com.h.

#define CLIENT_PROTOCOL_41   512
 

Definition at line 116 of file mysql_com.h.

#define CLIENT_REMEMBER_OPTIONS   (((ulong) 1) << 31)
 

Definition at line 125 of file mysql_com.h.

#define CLIENT_RESERVED   16384
 

Definition at line 121 of file mysql_com.h.

#define CLIENT_SECURE_CONNECTION   32768
 

Definition at line 122 of file mysql_com.h.

#define CLIENT_SSL   2048
 

Definition at line 118 of file mysql_com.h.

#define CLIENT_TRANSACTIONS   8192
 

Definition at line 120 of file mysql_com.h.

#define COMP_HEADER_SIZE   3
 

Definition at line 337 of file mysql_com.h.

#define ENUM_FLAG   256
 

Definition at line 76 of file mysql_com.h.

#define FIELD_TYPE_BLOB   MYSQL_TYPE_BLOB
 

Definition at line 228 of file mysql_com.h.

#define FIELD_TYPE_CHAR   MYSQL_TYPE_TINY
 

Definition at line 231 of file mysql_com.h.

#define FIELD_TYPE_DATE   MYSQL_TYPE_DATE
 

Definition at line 218 of file mysql_com.h.

#define FIELD_TYPE_DATETIME   MYSQL_TYPE_DATETIME
 

Definition at line 220 of file mysql_com.h.

#define FIELD_TYPE_DECIMAL   MYSQL_TYPE_DECIMAL
 

Definition at line 208 of file mysql_com.h.

#define FIELD_TYPE_DOUBLE   MYSQL_TYPE_DOUBLE
 

Definition at line 213 of file mysql_com.h.

#define FIELD_TYPE_ENUM   MYSQL_TYPE_ENUM
 

Definition at line 223 of file mysql_com.h.

#define FIELD_TYPE_FLOAT   MYSQL_TYPE_FLOAT
 

Definition at line 212 of file mysql_com.h.

#define FIELD_TYPE_GEOMETRY   MYSQL_TYPE_GEOMETRY
 

Definition at line 233 of file mysql_com.h.

#define FIELD_TYPE_INT24   MYSQL_TYPE_INT24
 

Definition at line 217 of file mysql_com.h.

#define FIELD_TYPE_INTERVAL   MYSQL_TYPE_ENUM
 

Definition at line 232 of file mysql_com.h.

#define FIELD_TYPE_LONG   MYSQL_TYPE_LONG
 

Definition at line 211 of file mysql_com.h.

#define FIELD_TYPE_LONG_BLOB   MYSQL_TYPE_LONG_BLOB
 

Definition at line 227 of file mysql_com.h.

#define FIELD_TYPE_LONGLONG   MYSQL_TYPE_LONGLONG
 

Definition at line 216 of file mysql_com.h.

#define FIELD_TYPE_MEDIUM_BLOB   MYSQL_TYPE_MEDIUM_BLOB
 

Definition at line 226 of file mysql_com.h.

#define FIELD_TYPE_NEWDATE   MYSQL_TYPE_NEWDATE
 

Definition at line 222 of file mysql_com.h.

#define FIELD_TYPE_NULL   MYSQL_TYPE_NULL
 

Definition at line 214 of file mysql_com.h.

#define FIELD_TYPE_SET   MYSQL_TYPE_SET
 

Definition at line 224 of file mysql_com.h.

#define FIELD_TYPE_SHORT   MYSQL_TYPE_SHORT
 

Definition at line 210 of file mysql_com.h.

#define FIELD_TYPE_STRING   MYSQL_TYPE_STRING
 

Definition at line 230 of file mysql_com.h.

#define FIELD_TYPE_TIME   MYSQL_TYPE_TIME
 

Definition at line 219 of file mysql_com.h.

#define FIELD_TYPE_TIMESTAMP   MYSQL_TYPE_TIMESTAMP
 

Definition at line 215 of file mysql_com.h.

#define FIELD_TYPE_TINY   MYSQL_TYPE_TINY
 

Definition at line 209 of file mysql_com.h.

#define FIELD_TYPE_TINY_BLOB   MYSQL_TYPE_TINY_BLOB
 

Definition at line 225 of file mysql_com.h.

#define FIELD_TYPE_VAR_STRING   MYSQL_TYPE_VAR_STRING
 

Definition at line 229 of file mysql_com.h.

#define FIELD_TYPE_YEAR   MYSQL_TYPE_YEAR
 

Definition at line 221 of file mysql_com.h.

#define GROUP_FLAG   32768
 

Definition at line 82 of file mysql_com.h.

#define HOSTNAME_LENGTH   60
 

Definition at line 25 of file mysql_com.h.

#define LOCAL_HOST   "localhost"
 

Definition at line 30 of file mysql_com.h.

#define LOCAL_HOST_NAMEDPIPE   "."
 

Definition at line 31 of file mysql_com.h.

#define MAX_BIGINT_WIDTH   20
 

Definition at line 147 of file mysql_com.h.

#define MAX_BLOB_WIDTH   8192
 

Definition at line 149 of file mysql_com.h.

#define MAX_CHAR_WIDTH   255
 

Definition at line 148 of file mysql_com.h.

#define MAX_INT_WIDTH   10
 

Definition at line 146 of file mysql_com.h.

#define MAX_MEDIUMINT_WIDTH   8
 

Definition at line 145 of file mysql_com.h.

#define MAX_SMALLINT_WIDTH   5
 

Definition at line 144 of file mysql_com.h.

#define MAX_TINYINT_WIDTH   3
 

Definition at line 143 of file mysql_com.h.

#define MULTIPLE_KEY_FLAG   8
 

Definition at line 69 of file mysql_com.h.

#define MYSQL_ERRMSG_SIZE   512
 

Definition at line 135 of file mysql_com.h.

#define MYSQL_LONG_DATA_HEADER   6
 

Definition at line 395 of file mysql_com.h.

#define MYSQL_SHUTDOWN_KILLABLE_CONNECT   (unsigned char)(1 << 0)
 

Definition at line 239 of file mysql_com.h.

#define MYSQL_SHUTDOWN_KILLABLE_LOCK_TABLE   (unsigned char)(1 << 2)
 

Definition at line 241 of file mysql_com.h.

#define MYSQL_SHUTDOWN_KILLABLE_TRANS   (unsigned char)(1 << 1)
 

Definition at line 240 of file mysql_com.h.

#define MYSQL_SHUTDOWN_KILLABLE_UPDATE   (unsigned char)(1 << 3)
 

Definition at line 242 of file mysql_com.h.

#define MYSQL_STMT_HEADER   4
 

Definition at line 394 of file mysql_com.h.

#define NAME_LEN   64
 

Definition at line 24 of file mysql_com.h.

#define NET_HEADER_SIZE   4
 

Definition at line 336 of file mysql_com.h.

#define net_new_transaction net   )     ((net)->pkt_nr=0)
 

Definition at line 275 of file mysql_com.h.

#define NET_READ_TIMEOUT   30
 

Definition at line 136 of file mysql_com.h.

#define NET_WAIT_TIMEOUT   8*60*60
 

Definition at line 138 of file mysql_com.h.

#define NET_WRITE_TIMEOUT   60
 

Definition at line 137 of file mysql_com.h.

#define NOT_NULL_FLAG   1
 

Definition at line 66 of file mysql_com.h.

#define NULL_LENGTH   ((unsigned long) ~0)
 

Definition at line 393 of file mysql_com.h.

#define NUM_FLAG   32768
 

Definition at line 80 of file mysql_com.h.

#define packet_error   (~(unsigned long) 0)
 

Definition at line 184 of file mysql_com.h.

#define PART_KEY_FLAG   16384
 

Definition at line 81 of file mysql_com.h.

#define PRI_KEY_FLAG   2
 

Definition at line 67 of file mysql_com.h.

#define REFRESH_DES_KEY_FILE   0x40000L
 

Definition at line 104 of file mysql_com.h.

#define REFRESH_FAST   32768
 

Definition at line 99 of file mysql_com.h.

#define REFRESH_GRANT   1
 

Definition at line 86 of file mysql_com.h.

#define REFRESH_HOSTS   8
 

Definition at line 89 of file mysql_com.h.

#define REFRESH_LOG   2
 

Definition at line 87 of file mysql_com.h.

#define REFRESH_MASTER   128
 

Definition at line 94 of file mysql_com.h.

#define REFRESH_QUERY_CACHE   65536
 

Definition at line 102 of file mysql_com.h.

#define REFRESH_QUERY_CACHE_FREE   0x20000L
 

Definition at line 103 of file mysql_com.h.

#define REFRESH_READ_LOCK   16384
 

Definition at line 98 of file mysql_com.h.

#define REFRESH_SLAVE   64
 

Definition at line 92 of file mysql_com.h.

#define REFRESH_STATUS   16
 

Definition at line 90 of file mysql_com.h.

#define REFRESH_TABLES   4
 

Definition at line 88 of file mysql_com.h.

#define REFRESH_THREADS   32
 

Definition at line 91 of file mysql_com.h.

#define REFRESH_USER_RESOURCES   0x80000L
 

Definition at line 105 of file mysql_com.h.

#define SCRAMBLE_LENGTH   20
 

Definition at line 59 of file mysql_com.h.

#define SCRAMBLE_LENGTH_323   8
 

Definition at line 60 of file mysql_com.h.

#define SCRAMBLED_PASSWORD_CHAR_LENGTH   (SCRAMBLE_LENGTH*2+1)
 

Definition at line 62 of file mysql_com.h.

#define SCRAMBLED_PASSWORD_CHAR_LENGTH_323   (SCRAMBLE_LENGTH_323*2)
 

Definition at line 63 of file mysql_com.h.

#define SERVER_MORE_RESULTS_EXISTS   8
 

Definition at line 130 of file mysql_com.h.

#define SERVER_QUERY_NO_GOOD_INDEX_USED   16
 

Definition at line 131 of file mysql_com.h.

#define SERVER_QUERY_NO_INDEX_USED   32
 

Definition at line 132 of file mysql_com.h.

#define SERVER_STATUS_AUTOCOMMIT   2
 

Definition at line 128 of file mysql_com.h.

#define SERVER_STATUS_DB_DROPPED   256
 

Definition at line 133 of file mysql_com.h.

#define SERVER_STATUS_IN_TRANS   1
 

Definition at line 127 of file mysql_com.h.

#define SERVER_STATUS_MORE_RESULTS   4
 

Definition at line 129 of file mysql_com.h.

#define SERVER_VERSION_LENGTH   60
 

Definition at line 27 of file mysql_com.h.

#define SET_FLAG   2048
 

Definition at line 79 of file mysql_com.h.

#define SQLSTATE_LENGTH   5
 

Definition at line 28 of file mysql_com.h.

#define TIMESTAMP_FLAG   1024
 

Definition at line 78 of file mysql_com.h.

#define UNIQUE_FLAG   65536
 

Definition at line 83 of file mysql_com.h.

#define UNIQUE_KEY_FLAG   4
 

Definition at line 68 of file mysql_com.h.

#define UNSIGNED_FLAG   32
 

Definition at line 71 of file mysql_com.h.

#define USERNAME_LENGTH   16
 

Definition at line 26 of file mysql_com.h.

#define ZEROFILL_FLAG   64
 

Definition at line 72 of file mysql_com.h.


Typedef Documentation

typedef struct st_net NET
 

typedef struct st_udf_args UDF_ARGS
 

typedef struct st_udf_init UDF_INIT
 

typedef struct st_vio Vio
 

Definition at line 141 of file mysql_com.h.


Enumeration Type Documentation

enum enum_field_types
 

Enumeration values:
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_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 

Definition at line 186 of file mysql_com.h.

enum enum_mysql_set_option
 

Enumeration values:
MYSQL_OPTION_MULTI_STATEMENTS_ON 
MYSQL_OPTION_MULTI_STATEMENTS_OFF 

Definition at line 269 of file mysql_com.h.

enum enum_server_command
 

Enumeration values:
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_PREPARE 
COM_EXECUTE 
COM_LONG_DATA 
COM_CLOSE_STMT 
COM_RESET_STMT 
COM_SET_OPTION 
COM_END 

Definition at line 39 of file mysql_com.h.

enum Item_result
 

Enumeration values:
STRING_RESULT 
REAL_RESULT 
INT_RESULT 
ROW_RESULT 

Definition at line 313 of file mysql_com.h.

enum mysql_enum_shutdown_level
 

Enumeration values:
SHUTDOWN_DEFAULT 
SHUTDOWN_WAIT_CONNECTIONS 
SHUTDOWN_WAIT_TRANSACTIONS 
SHUTDOWN_WAIT_UPDATES 
SHUTDOWN_WAIT_ALL_BUFFERS 
SHUTDOWN_WAIT_CRITICAL_BUFFERS 
KILL_CONNECTION 

Definition at line 244 of file mysql_com.h.


Function Documentation

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 rand_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 char *  opt_message  ) 
 

void hash_password unsigned long *  to,
const char *  password,
unsigned int  password_len
 

int load_defaults const char *  conf_file,
const char **  groups,
int *  argc,
char ***  argv
 

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_init void   ) 
 

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 char *  packet,
unsigned long  len
 

double my_rnd struct rand_struct  ) 
 

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  ) 
 

void net_end NET net  ) 
 

my_bool net_flush NET net  ) 
 

int net_real_write NET net,
const char *  packet,
unsigned long  len
 

my_bool net_realloc NET net,
unsigned long  length
 

my_bool net_write_command NET net,
unsigned char  command,
const char *  header,
unsigned long  head_len,
const char *  packet,
unsigned long  len
 

void randominit struct rand_struct ,
unsigned long  seed1,
unsigned long  seed2
 

void scramble char *  to,
const char *  message,
const char *  password
 

void scramble_323 char *  to,
const char *  message,
const char *  password
 


Generated on Sun May 14 14:51:29 2006 by  doxygen 1.4.2