[#1808] Optimise various ResultQuery.fetch(int),

ResultQuery.fetch(String) methods. They don't need to fetch all fields,
only the required ones - Added a comment
This commit is contained in:
Lukas Eder 2012-09-07 12:38:08 +02:00
parent 25996db3f7
commit 7f3e0fb63d

View File

@ -133,6 +133,9 @@ abstract class AbstractSelect<R extends Record> extends AbstractResultQuery<R> i
@Override
protected final List<Field<?>> getFields(ResultSetMetaData meta) {
// [#1808] TODO: Restrict this field list, in case a restricting fetch()
// method was called to get here
List<Field<?>> select = getSelect();
// If no projection was specified explicitly, create fields from result