mirror of https://github.com/luapower/mysql.git
unimportant
This commit is contained in:
parent
1818e63809
commit
de62a455af
|
@ -1130,6 +1130,11 @@ local function read_result(self, opt)
|
||||||
while true do
|
while true do
|
||||||
local typ, buf = recv_packet(self)
|
local typ, buf = recv_packet(self)
|
||||||
|
|
||||||
|
if typ == 'ERR' then
|
||||||
|
self.state = 'ready'
|
||||||
|
return nil, get_err_packet(buf)
|
||||||
|
end
|
||||||
|
|
||||||
if typ == 'EOF' then
|
if typ == 'EOF' then
|
||||||
local _, status_flags = get_eof_packet(buf)
|
local _, status_flags = get_eof_packet(buf)
|
||||||
if band(status_flags, SERVER_MORE_RESULTS_EXISTS) ~= 0 then
|
if band(status_flags, SERVER_MORE_RESULTS_EXISTS) ~= 0 then
|
||||||
|
|
Loading…
Reference in New Issue