From 83122e89dfa91d305650903a4c8a55cff8f53211 Mon Sep 17 00:00:00 2001 From: eelke Date: Sun, 6 Oct 2019 09:39:11 +0200 Subject: [PATCH] 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. --- pglablib/util.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pglablib/util.cpp b/pglablib/util.cpp index e3772ee..4b45e86 100644 --- a/pglablib/util.cpp +++ b/pglablib/util.cpp @@ -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. while (index < in.length() && (in[index].isSpace() || in[index] == '+' || in[index] == '.')) ++index; if (index == in.length()) { - state == END; + state = END; break; } // Assume quotes can vary