[
https://issues.apache.org/jira/browse/KYLIN-2877?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
liyang resolved KYLIN-2877.
---------------------------
Resolution: Fixed
Assignee: liyang
Fix Version/s: v2.2.0
Thanks for reporting Ted!
> Unclosed PreparedStatement in QueryService#execute()
> ----------------------------------------------------
>
> Key: KYLIN-2877
> URL: https://issues.apache.org/jira/browse/KYLIN-2877
> Project: Kylin
> Issue Type: Bug
> Reporter: Ted Yu
> Assignee: liyang
> Priority: Minor
> Fix For: v2.2.0
>
>
> {code}
> PreparedStatement preparedState =
> conn.prepareStatement(correctedSql);
> processStatementAttr(preparedState, sqlRequest);
> for (int i = 0; i < ((PrepareSqlRequest)
> sqlRequest).getParams().length; i++) {
> setParam(preparedState, i + 1, ((PrepareSqlRequest)
> sqlRequest).getParams()[i]);
> }
> resultSet = preparedState.executeQuery();
> {code}
> preparedState should be closed upon return.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)