Revize ea163a4c
Přidáno uživatelem Michal Linha před téměř 4 roky(ů)
src/main/java/vldc/aswi/service/SqlQueryManagerImpl.java | ||
---|---|---|
47 | 47 |
generateFullSQLQuery(assembly.getSQLQuery(), parametersInConfiguration) |
48 | 48 |
); |
49 | 49 |
|
50 |
// there was an error in the query |
|
50 | 51 |
if (tableColumns == null) { |
51 | 52 |
return null; |
52 | 53 |
} |
53 | 54 |
|
55 |
// no rows were returned by query |
|
54 | 56 |
if (tableColumns.values().iterator().next().getValues().size() == 0) { |
55 | 57 |
return new ArrayList<>(); |
56 | 58 |
} |
Také k dispozici: Unified diff
changed parameter fetch type in assembly to LAZY, added comments, added table name check, changed in assembly template to always load table name