fix: comparison that should have been assignment

Didn't cause any bugs because the state was not used after that point
however it would have cause issues when that changed later.
This commit is contained in:
eelke 2019-10-06 09:39:11 +02:00
parent 4ea388cad7
commit 83122e89df

View file

@ -227,7 +227,7 @@ QString ConvertLangToSqlString(const QString &in)
// that doesn't matter however as we are just trying to strip everything which is not SQL. // that doesn't matter however as we are just trying to strip everything which is not SQL.
while (index < in.length() && (in[index].isSpace() || in[index] == '+' || in[index] == '.')) ++index; while (index < in.length() && (in[index].isSpace() || in[index] == '+' || in[index] == '.')) ++index;
if (index == in.length()) { if (index == in.length()) {
state == END; state = END;
break; break;
} }
// Assume quotes can vary // Assume quotes can vary