Wrap execute() call in try {} finally {}

This commit is contained in:
Lukas Eder 2012-09-22 11:50:55 +02:00
parent dda85af4b4
commit 05bbb371c7

View File

@ -281,8 +281,13 @@ abstract class AbstractResultQuery<R extends Record> extends AbstractQuery imple
@Override
public final List<Result<Record>> fetchMany() {
many = true;
execute();
many = false;
try {
execute();
}
finally {
many = false;
}
return results;
}