From b1f7a6d09f63c5a9fc248b32ef5497d19fe3e227 Mon Sep 17 00:00:00 2001 From: Robin Malley Date: Sun, 11 Oct 2020 23:55:02 +0000 Subject: [PATCH] Fixed search bug Fixed a bug where the first search would be repeated for all following searches (stmt:reset() strikes agains). --- src/lua/init.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lua/init.lua b/src/lua/init.lua index e6a0eda..0dbd0fa 100644 --- a/src/lua/init.lua +++ b/src/lua/init.lua @@ -1175,6 +1175,7 @@ function search(req) tags = tags }) elseif err == sql.DONE then + stmnt_search:reset() else error("Failed to search, sql error:" .. tostring(err)) end