Fixed a important bug in the SelectionManager

This commit is contained in:
mathias 2021-08-24 21:12:42 +02:00
parent 0605b4fcd9
commit f4f6546cae
No known key found for this signature in database
GPG Key ID: 8950DF62139C852A

View File

@ -131,7 +131,7 @@ public class SelectionManager {
StringBuilder query = new StringBuilder().append("SELECT * FROM ").append(tableName).append(" ");
for (int i = 0; i < whereList.size(); i++) {
if (i > 0) query.append("WHERE ");
if (i == 0) query.append("WHERE ");
else query.append("AND ");
query.append(whereList.keySet().toArray()[i]).append(" = ? ");