Uploaded image for project: 'Teiid'
  1. Teiid
  2. TEIID-4089

Teiid JDBC driver does not reset the update count when calling getMoreResults(int)

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 8.11.2
    • Fix Version/s: 9.0, 8.12.5, 8.13.3
    • Component/s: JDBC Driver
    • Labels:
      None
    • Environment:

      Windows 7 Pro 64bit
      Java 8u66 64bit

      Description

      I have run across a situation with the JDBC driver. Looking at StatementImpl.getMoreResults(int), it does not clear the update counts, whereas StatementImpl.getMoreResults() does. Long story short, this is preventing me from integrating the JDBC driver properly into my application, due to the runtime's (3rd party) handling of statements. It gets stuck in an infinite loop because to close the statement, they call StatementImpl.getMoreResults(Statement.CLOSE_CURRENT_RESULT);, but then they have a check for a -1 value to be returned from getUpdateCount() before exiting the loop. In my case, that value is always 1, and thus the infinite loop.

      It seems logical to me that getMoreResults(int) should behave the same as getMoreResults() seeing as they both always return false, only the latter is the only one that closes the resultset/clearing the update count.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                shawkins Steven Hawkins
                Reporter:
                dajester2011 Jesse Shaffer
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: