You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Julian Hyde (JIRA)" <ji...@apache.org> on 2018/03/01 23:16:00 UTC
[jira] [Resolved] (CALCITE-2140) Basic implementation of
Statement#getMoreResults()
[ https://issues.apache.org/jira/browse/CALCITE-2140?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Julian Hyde resolved CALCITE-2140.
----------------------------------
Resolution: Fixed
Fix Version/s: avatica-1.11.0
Fixed in [02d00b77|http://git-wip-us.apache.org/repos/asf/calcite-avatica/commit/02d00b77]; thanks for the PR, [~laurentgo]!
> Basic implementation of Statement#getMoreResults()
> --------------------------------------------------
>
> Key: CALCITE-2140
> URL: https://issues.apache.org/jira/browse/CALCITE-2140
> Project: Calcite
> Issue Type: Improvement
> Components: avatica
> Reporter: Laurent Goujon
> Priority: Minor
> Fix For: avatica-1.11.0
>
>
> Methods {{Statement#getMoreResults}} and {{Statement#getMoreResults(int)}} are currently throwing a {{SQLFeatureNotSupportedException}}, but at least one tool (DataGrip) is calling the first method after each SQL request.
> Avatica doesn't support multiple {{ResultSet}} for a given {{Statement}} (see [https://github.com/apache/calcite-avatica/blob/master/core/src/main/java/org/apache/calcite/avatica/AvaticaDatabaseMetaData.java#L1148]), so a basic implementation could close the current open result set (if any), and return {{false}} for both methods (unless the int argument is equal to {{Statement.KEEP_CURRENT_RESULT}} or {{Statement.CLOSE_ALL_RESULTS}}).
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)