Oracle 5.0 Reference Manual page 1434

Table of Contents

Advertisement

Attribute
insert_id
query_status
For an example showing how to use this structure, see
Proxy Return State Constants
The following constants are used internally by the proxy to specify the response to send to the client or
server. All constants are exposed as values within the main
Constant
PROXY_SEND_QUERY
PROXY_SEND_RESULT
PROXY_IGNORE_RESULT
As constants, these entities are available without qualification in the Lua scripts. For example, at the
end of the
read_query_result()
return proxy.PROXY_IGNORE_RESULT
Packet State Constants
The following states describe the status of a network packet. These items are entries within the main
table.
proxy
Constant
MYSQLD_PACKET_OK
MYSQLD_PACKET_ERR
MYSQLD_PACKET_RAW
Backend State/Type Constants
The following constants are used either to define the status or type of the backend MySQL server to
which the proxy is connected. These items are entries within the main
Constant
BACKEND_STATE_UNKNOWN
BACKEND_STATE_UP
BACKEND_STATE_DOWN
BACKEND_TYPE_UNKNOWN
BACKEND_TYPE_RW
BACKEND_TYPE_RO
Server Command Constants
The values described in the table below are used in the packets exchanged between the client and
server to identify the information in the rest of the packet. These items are entries within the main
table. The packet type is defined as the first character in the sent packet. For example, when
proxy
intercepting packets from the client to edit or monitor a query, you would check that the first byte of the
packet was of type proxy.COM_QUERY.
MySQL Proxy Scripting
Description
The last insert ID for an auto-incremented column in a table.
The status of the query operation. You can use the
or
MYSQLD_PACKET_OK
this parameter.
Description
Causes the proxy to send the current contents of the queries queue to
the server.
Causes the proxy to send a result set back to the client.
Causes the proxy to drop the result set (nothing is returned to the
client).
you might return
Description
The packet is OK
The packet contains error information
The packet contains raw data
Description
The current status is unknown
The backend is known to be up (available)
The backend is known to be down (unavailable)
Backend type is unknown
Backend is available for read/write
Backend is available only for read-only use
1414
MYSQLD_PACKET_ERR
[1412].
proxy.response
table.
proxy
PROXY_IGNORE_RESULT:
proxy
constants to populate
table.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents