Fixed bug

This commit is contained in:
Luca Frosini 2021-03-29 10:43:21 +02:00
parent d0141823ef
commit 67163d3b1e
2 changed files with 8 additions and 1 deletions

View File

@ -366,10 +366,11 @@ public class Query extends PostgreSQLQuery {
}
public String getDinstinctValuesQuery() {
newQuery();
String dbField = getTableField(tableFieldToRequest);
requestedTableField.add(dbField);
newQuery();
stringBuffer.append("DISTINCT ");
stringBuffer.append(dbField);
stringBuffer.append(" FROM ");

View File

@ -215,4 +215,10 @@ public class AccountingPersistenceQueryPostgreSQLTest extends ContextTest {
Record record = accountingPersistenceQueryPostgreSQL.getRecord("fa573711-ceb6-44ba-9c83-bd47e0915b80", type);
logger.debug("{}", record);
}
@Test
public void testGetSpaceProvidersIds() throws DuplicatedKeyFilterException, KeyException, ValueException, Exception {
SortedSet<String> spaceProvidersIds = accountingPersistenceQueryPostgreSQL.getSpaceProvidersIds();
logger.debug("{}", spaceProvidersIds);
}
}