Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-4459

Verification error at execute-time when an outer function which takes a primitive arg is wrapped around an inner function which returns the corresponding Java wrapper object

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 10.4.2.1, 10.5.3.1, 10.6.1.0
    • Fix Version/s: 10.5.3.2, 10.6.2.4, 10.7.1.1
    • Component/s: SQL
    • Labels:
      None

      Description

      An insane Derby raises a verification error when trying to run the following query:

      values( negateInt( getNullInt() ) );

      where negateInt() takes a primitive int argument and getNullInt() returns an Integer.

      Sane Derby raises an assertion. The same test case, run against 10.3.3.1, also fails but raises a more graceful compile-time exception.

        Attachments

        1. derby-4459-01-aa-disableOptimization.diff
          3 kB
          Rick Hillegas
        2. derby4459.java
          0.1 kB
          Rick Hillegas
        3. derby-4459.sql
          0.4 kB
          Rick Hillegas

          Issue Links

            Activity

              People

              • Assignee:
                rhillegas Rick Hillegas
                Reporter:
                rhillegas Rick Hillegas
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: