diff --git a/lib/resty/mysql.lua b/lib/resty/mysql.lua index ad0562d..b28dfcd 100644 --- a/lib/resty/mysql.lua +++ b/lib/resty/mysql.lua @@ -927,6 +927,8 @@ local function read_result(self, est_nrows) end self.state = STATE_CONNECTED + + setmetatable(rows,cols) return rows end