Skip to content

Commit

Permalink
bugfix: fixed the Lua exception "attempt to concatenate field 'state'…
Browse files Browse the repository at this point in the history
… (a nil value)".

thanks heyuanlong for the report in #36.
  • Loading branch information
agentzh committed May 19, 2016
1 parent 822d2c0 commit 3f76f7b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/resty/mysql.lua
Expand Up @@ -764,7 +764,8 @@ _M.send_query = send_query
local function read_result(self, est_nrows)
if self.state ~= STATE_COMMAND_SENT then
return nil, "cannot read result in the current context: " .. self.state
return nil, "cannot read result in the current context: "
.. (self.state or "nil")
end
local sock = self.sock
Expand Down

0 comments on commit 3f76f7b

Please sign in to comment.