Commit da5e3e4d authored by Lisa's avatar Lisa
Browse files

Query parameters fixed.

parent 66b6d14f
......@@ -32,7 +32,7 @@ QString selectPackages(const QString& property, const QString& comparison, const
QString selectPackagesNameOrDescription(const QString& token, const QString& comparison)
{
return QString("SELECT * FROM packages WHERE name %1 \"%2\" OR description %2 \"%3\";").arg(token, comparison, token);
return QString("SELECT * FROM packages WHERE name %1 \"%2\" OR description %1 \"%2\";").arg(comparison, token);
}
QString selectHooks(const QString& property, const QString& comparison, const QString& value)
......
Markdown is supported
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