Fixed bug
This commit is contained in:
parent
d0141823ef
commit
67163d3b1e
|
@ -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 ");
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue