Skip to content
Snippets Groups Projects
Commit b457a40f authored by delleceste's avatar delleceste
Browse files

fixed missing terminating % in query

parent 105c38d7
No related branches found
No related tags found
No related merge requests found
......@@ -387,7 +387,7 @@ void Alarm::queryDB()
QString ored_handlers;
int i = 0;
if(m_handlers.size() > 0)
ored_handlers = "att_name LIKE '%" + m_handlers[0] + "' ";
ored_handlers = "att_name LIKE '%" + m_handlers[0] + "%' ";
for(i = 1; i < m_handlers.size(); i++)
ored_handlers += " OR att_name LIKE '%" + m_handlers[i] + "%' ";
if(dts.isValid() && dte.isValid() && dts < dte && ored_handlers.length() > 0) {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment