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:
parent
e6b1b7a8a1
commit
b1f7a6d09f
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue