Uploaded image for project: 'Lucee Development'
  1. LDEV-785

Infinite loop on insert queries if Statement always returns a positive update count

    Details

    • Type: Bug
    • Status: Deployed
    • Priority: New
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.0.0.223
    • Labels:
      None

      Description

      The issue comes down to

      https://github.com/lucee/Lucee/blob/master/core/src/main/java/lucee/runtime/type/QueryImpl.java#L297

      The loop does not exit unless the statement's getUpdateCount() returns a -1 AND hasResult is false. My question is, is there ever a (non error) case where hasResult is false and getUpdateCount() returns a positive integer? I have a JDBC driver that incorrectly fails to reset it's update count when calling getMoreResults(int).

        Attachments

          Activity

            People

            • Assignee:
              michaeloffner Michael Offner
              Reporter:
              dajester2015 Jesse Shaffer
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: