3
function read_query( packet )
4
if packet:byte() == proxy.COM_QUERY then
5
proxy.queries:append(1, packet, { resultset_is_needed = true } )
8
-- forward the incoming query AS IS
12
function read_query_result(inj)
13
local res = assert(inj.resultset)
15
if res.query_status == proxy.MYSQLD_PACKET_ERR then
16
print(("received error-code: %d"):format(
17
res.raw:byte(2)+(res.raw:byte(3)*256)