Definition at line 65 of file mysql_protocol.h.
◆ ClientMySQLProtocol()
| drizzle_plugin::ClientMySQLProtocol::ClientMySQLProtocol |
( |
int | fd, |
|
|
ProtocolCounters & | set_counters ) |
◆ ~ClientMySQLProtocol()
| drizzle_plugin::ClientMySQLProtocol::~ClientMySQLProtocol |
( |
| ) |
|
|
virtual |
◆ authenticate()
| bool drizzle_plugin::ClientMySQLProtocol::authenticate |
( |
| ) |
|
|
virtual |
◆ checkConnection()
| bool drizzle_plugin::ClientMySQLProtocol::checkConnection |
( |
| ) |
|
|
protected |
◆ close()
| void drizzle_plugin::ClientMySQLProtocol::close |
( |
| ) |
|
|
virtual |
◆ flush()
| bool drizzle_plugin::ClientMySQLProtocol::flush |
( |
| ) |
|
|
virtual |
◆ getFileDescriptor()
| int drizzle_plugin::ClientMySQLProtocol::getFileDescriptor |
( |
| ) |
|
|
virtual |
◆ haveError()
| bool drizzle_plugin::ClientMySQLProtocol::haveError |
( |
void | | ) |
|
|
virtual |
◆ isConnected()
| bool drizzle_plugin::ClientMySQLProtocol::isConnected |
( |
| ) |
|
|
virtual |
◆ isInteractive()
| bool drizzle_plugin::ClientMySQLProtocol::isInteractive |
( |
| ) |
const |
|
inlinevirtual |
◆ makeScramble()
| void drizzle_plugin::ClientMySQLProtocol::makeScramble |
( |
char * | scramble | ) |
|
|
protected |
◆ netStoreData()
| void drizzle_plugin::ClientMySQLProtocol::netStoreData |
( |
const void * | from, |
|
|
size_t | length ) |
|
protected |
◆ readCommand()
| bool drizzle_plugin::ClientMySQLProtocol::readCommand |
( |
char ** | packet, |
|
|
uint32_t & | packet_length ) |
|
virtual |
◆ sendEOF()
| void drizzle_plugin::ClientMySQLProtocol::sendEOF |
( |
void | | ) |
|
|
virtual |
Send eof (= end of result set) to the client.
The eof packet has the following structure:
- 254 (DRIZZLE_PROTOCOL_NO_MORE_DATA) : Marker (1 byte)
- warning_count : Stored in 2 bytes; New in 4.1 client
- status_flag : Stored in 2 bytes; For flags like SERVER_MORE_RESULTS_EXISTS.
Note that the warning count will not be sent if 'no_flush' is set as we don't want to report the warning count until all data is sent to the client.
Implements drizzled::plugin::Client.
Definition at line 359 of file mysql_protocol.cc.
◆ sendError()
| void drizzle_plugin::ClientMySQLProtocol::sendError |
( |
const drizzled::error_t | sql_errno, |
|
|
const char * | err ) |
|
virtual |
Send a error string to client.
For SIGNAL/RESIGNAL and GET DIAGNOSTICS functionality it's critical that every error that can be intercepted is issued in one place only, my_message_sql.
Implements drizzled::plugin::Client.
Definition at line 373 of file mysql_protocol.cc.
◆ sendFields()
Send name and type of result to client.
Sum fields has table name empty and field_name.
- Parameters
-
| Session | Thread data object |
| list | List of items to send to client |
| flag | Bit mask with the following functions:
- 1 send number of rows
- 2 send default values
- 4 don't write eof packet
|
- Return values
-
| 0 | ok |
| 1 | Error (Note that in this case the error is not sent to the client) |
Implements drizzled::plugin::Client.
Definition at line 436 of file mysql_protocol.cc.
◆ sendOK()
| void drizzle_plugin::ClientMySQLProtocol::sendOK |
( |
void | | ) |
|
|
virtual |
Return ok to the client.
The ok packet has the following structure:
- 0 : Marker (1 byte)
- affected_rows : Stored in 1-9 bytes
- id : Stored in 1-9 bytes
- server_status : Copy of session->server_status; Can be used by client to check if we are inside an transaction. New in 4.0 client
- warning_count : Stored in 2 bytes; New in 4.1 client
- message : Stored as packed length (1-9 bytes) + message. Is not stored if no message.
- Parameters
-
| session | Thread handler |
| affected_rows | Number of rows changed by statement |
| id | Auto_increment id for first row (if used) |
| message | Message to send to the client (Used by mysql_status) |
Implements drizzled::plugin::Client.
Definition at line 292 of file mysql_protocol.cc.
◆ store() [1/8]
| void drizzle_plugin::ClientMySQLProtocol::store |
( |
void | | ) |
|
|
virtual |
◆ store() [2/8]
| void drizzle_plugin::ClientMySQLProtocol::store |
( |
const char * | from, |
|
|
size_t | length ) |
|
virtual |
◆ store() [3/8]
| void drizzle_plugin::ClientMySQLProtocol::store |
( |
double | from, |
|
|
uint32_t | decimals, |
|
|
drizzled::String * | buffer ) |
|
virtual |
◆ store() [4/8]
◆ store() [5/8]
| void drizzle_plugin::ClientMySQLProtocol::store |
( |
int32_t | from | ) |
|
|
virtual |
◆ store() [6/8]
| void drizzle_plugin::ClientMySQLProtocol::store |
( |
int64_t | from | ) |
|
|
virtual |
◆ store() [7/8]
| void drizzle_plugin::ClientMySQLProtocol::store |
( |
uint32_t | from | ) |
|
|
virtual |
◆ store() [8/8]
| void drizzle_plugin::ClientMySQLProtocol::store |
( |
uint64_t | from | ) |
|
|
virtual |
◆ storeLength()
| unsigned char * drizzle_plugin::ClientMySQLProtocol::storeLength |
( |
unsigned char * | packet, |
|
|
uint64_t | length ) |
|
protected |
◆ wasAborted()
| bool drizzle_plugin::ClientMySQLProtocol::wasAborted |
( |
void | | ) |
|
|
virtual |
◆ writeEOFPacket()
| void drizzle_plugin::ClientMySQLProtocol::writeEOFPacket |
( |
uint32_t | server_status, |
|
|
uint32_t | total_warn_count ) |
|
protected |
Format EOF packet according to the current client and write it to the network output buffer.
Definition at line 821 of file mysql_protocol.cc.
◆ _is_interactive
| bool drizzle_plugin::ClientMySQLProtocol::_is_interactive |
|
protected |
◆ client_capabilities
| uint32_t drizzle_plugin::ClientMySQLProtocol::client_capabilities |
|
protected |
◆ counters
◆ net
| NET drizzle_plugin::ClientMySQLProtocol::net |
|
protected |
◆ packet
The documentation for this class was generated from the following files: