Fixed case sensitivity issue when building from past transactions.

This commit is contained in:
CalDescent 2021-11-01 19:41:50 +00:00
parent 8218bfd24b
commit 8fd37e857e

View File

@ -158,11 +158,11 @@ public class HSQLDBArbitraryRepository implements ArbitraryRepository {
"version, nonce, service, size, is_data_raw, data, chunk_hashes, " +
"name, update_method, secret, compression FROM ArbitraryTransactions " +
"JOIN Transactions USING (signature) " +
"WHERE name = ? AND service = ? AND created_when >= ?" +
"WHERE lower(name) = ? AND service = ? AND created_when >= ? " +
"ORDER BY created_when ASC";
List<ArbitraryTransactionData> arbitraryTransactionData = new ArrayList<>();
try (ResultSet resultSet = this.repository.checkedExecute(sql, name, service.value, since)) {
try (ResultSet resultSet = this.repository.checkedExecute(sql, name.toLowerCase(), service.value, since)) {
if (resultSet == null)
return null;