Fixed search bug

Fixed a bug where the first search would be repeated for all
following searches (stmt:reset() strikes agains).
This commit is contained in:
Robin Malley 2020-10-11 23:55:02 +00:00
parent e6b1b7a8a1
commit b1f7a6d09f
1 changed files with 1 additions and 0 deletions

View File

@ -1175,6 +1175,7 @@ function search(req)
tags = tags tags = tags
}) })
elseif err == sql.DONE then elseif err == sql.DONE then
stmnt_search:reset()
else else
error("Failed to search, sql error:" .. tostring(err)) error("Failed to search, sql error:" .. tostring(err))
end end