MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Protocol_text Class Reference

#include <protocol.h>

Inheritance diagram for Protocol_text:
Collaboration diagram for Protocol_text:

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)
Stringstorage_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
Stringpacket
Stringconvert
uint field_pos
enum enum_field_types * field_types
uint field_count

Detailed Description

Class used for the old (MySQL 4.0 protocol).

Definition at line 138 of file protocol.h.

Member Function Documentation

bool Protocol_text::send_out_parameters ( List< Item_param > *  sp_params)
virtual

Assign OUT-parameters to user variables.

Parameters
sp_paramsList of PS/SP parameters (both input and output).
Returns
Error status.
Return values
FALSESuccess.
TRUEError.

Implements Protocol.

Definition at line 1180 of file protocol.cc.

Here is the call graph for this function:

bool Protocol_text::store ( MYSQL_TIME tm,
uint  decimals 
)
virtual
Todo:
Second_part format ("%06") needs to change when we support 0-6 decimals for time.

Implements Protocol.

Definition at line 1131 of file protocol.cc.


The documentation for this class was generated from the following files: