mirror of
https://github.com/querydsl/querydsl.git
synced 2026-06-13 21:01:01 +08:00
[#2395] Close resources on exception in AbstractSQLQuery
This commit is contained in:
parent
e718b46a97
commit
15c2a9e496
@ -410,6 +410,8 @@ public abstract class AbstractSQLQuery<T, Q extends AbstractSQLQuery<T, Q>> exte
|
||||
throw configuration.translate(queryString, constants, e);
|
||||
} catch (RuntimeException e) {
|
||||
logger.error("Caught " + e.getClass().getName() + " for " + queryString);
|
||||
onException(context, e);
|
||||
endContext(context);
|
||||
throw e;
|
||||
} finally {
|
||||
reset();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user