Skip to content

Commit

Permalink
Merge pull request #455 from niuys/patch-2
Browse files Browse the repository at this point in the history
error deal for query containing multi statement
  • Loading branch information
cloudwu committed Feb 22, 2016
2 parents ea85572 + 14ccf96 commit 7b96eb2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lualib/mysql.lua
Original file line number Diff line number Diff line change
Expand Up @@ -607,6 +607,10 @@ local function _query_resp(self)
while err =="again" do
res, err, errno, sqlstate = read_result(self,sock)
if not res then
mulitresultset.badresult = true
mulitresultset.err = err
mulitresultset.errno = errno
mulitresultset.sqlstate = sqlstate
return true, mulitresultset
end
mulitresultset[i]=res
Expand Down

0 comments on commit 7b96eb2

Please sign in to comment.