Fix SQL query upon searching in Marketplace

This commit is contained in:
Thijmen Stavenuiter 2021-04-16 23:24:38 +02:00 committed by Thijmen
parent 9acc3f9359
commit ff92e4471c

View File

@ -122,7 +122,7 @@ public class MarketPlace {
query += " AND CEIL(price + (price / 100)) <= " + maxPrice;
}
if (search.length() > 0) {
query += " AND bi.public_name LIKE ? OR ci.catalog_name LIKE ?";
query += " AND ( bi.public_name LIKE ? OR ci.catalog_name LIKE ? ) ";
}
query += " GROUP BY base_item_id, ltd_data";