Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-2140

Basic implementation of Statement#getMoreResults()

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • avatica-1.11.0
    • avatica
    • None

    Description

      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).

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              laurent Laurent Goujon
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: