MySQL 5.6.14 Source Code Document
|
#include <protocol.h>
Public Member Functions | |
Protocol_text (THD *thd_arg) | |
virtual void | prepare_for_resend () |
virtual bool | store_null () |
virtual bool | store_tiny (longlong from) |
virtual bool | store_short (longlong from) |
virtual bool | store_long (longlong from) |
virtual bool | store_longlong (longlong from, bool unsigned_flag) |
virtual bool | store_decimal (const my_decimal *) |
virtual bool | store (const char *from, size_t length, const CHARSET_INFO *cs) |
virtual bool | store (const char *from, size_t length, const CHARSET_INFO *fromcs, const CHARSET_INFO *tocs) |
virtual bool | store (MYSQL_TIME *time, uint precision) |
virtual bool | store_date (MYSQL_TIME *time) |
virtual bool | store_time (MYSQL_TIME *time, uint precision) |
virtual bool | store (float nr, uint32 decimals, String *buffer) |
virtual bool | store (double from, uint32 decimals, String *buffer) |
virtual bool | store (Field *field) |
virtual bool | send_out_parameters (List< Item_param > *sp_params) |
virtual enum enum_protocol_type | type () |
Public Member Functions inherited from Protocol | |
Protocol (THD *thd_arg) | |
void | init (THD *thd_arg) |
virtual bool | send_result_set_metadata (List< Item > *list, uint flags) |
bool | send_result_set_row (List< Item > *row_items) |
bool | store (I_List< i_string > *str_list) |
bool | store (const char *from, const CHARSET_INFO *cs) |
String * | storage_packet () |
void | free () |
virtual bool | write () |
bool | store (int from) |
bool | store (uint32 from) |
bool | store (longlong from) |
bool | store (ulonglong from) |
bool | store (String *str) |
virtual bool | prepare_for_send (uint num_columns) |
virtual bool | flush () |
virtual void | end_partial_result_set (THD *thd) |
void | remove_last_row () |
void | end_statement () |
Additional Inherited Members | |
Public Types inherited from Protocol | |
enum | { SEND_NUM_ROWS = 1, SEND_DEFAULTS = 2, SEND_EOF = 4 } |
enum | enum_protocol_type { PROTOCOL_TEXT = 0, PROTOCOL_BINARY = 1, PROTOCOL_LOCAL = 2 } |
Protected Member Functions inherited from Protocol | |
bool | net_store_data (const uchar *from, size_t length) |
bool | net_store_data (const uchar *from, size_t length, const CHARSET_INFO *fromcs, const CHARSET_INFO *tocs) |
bool | store_string_aux (const char *from, size_t length, const CHARSET_INFO *fromcs, const CHARSET_INFO *tocs) |
virtual bool | send_ok (uint server_status, uint statement_warn_count, ulonglong affected_rows, ulonglong last_insert_id, const char *message) |
virtual bool | send_eof (uint server_status, uint statement_warn_count) |
virtual bool | send_error (uint sql_errno, const char *err_msg, const char *sql_state) |
Protected Attributes inherited from Protocol | |
THD * | thd |
String * | packet |
String * | convert |
uint | field_pos |
enum enum_field_types * | field_types |
uint | field_count |
Class used for the old (MySQL 4.0 protocol).
Definition at line 138 of file protocol.h.
|
virtual |
Assign OUT-parameters to user variables.
sp_params | List of PS/SP parameters (both input and output). |
FALSE | Success. |
TRUE | Error. |
Implements Protocol.
Definition at line 1180 of file protocol.cc.
|
virtual |
Implements Protocol.
Definition at line 1131 of file protocol.cc.