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 Bug
    • Status: Closed
    • Priority: Major 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.

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

        Issue Links

          Activity

          Gavin made changes -
          Workflow jira [ 12483465 ] Default workflow, editable Closed status [ 12802669 ]
          Rick Hillegas made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Kathey Marsden made changes -
          Status Reopened [ 4 ] Resolved [ 5 ]
          Assignee Kathey Marsden [ kmarsden ] Rick Hillegas [ rhillegas ]
          Fix Version/s 10.5.3.2 [ 12315436 ]
          Fix Version/s 10.6.2.3 [ 12315434 ]
          Resolution Fixed [ 1 ]
          Kathey Marsden made changes -
          Assignee Rick Hillegas [ rhillegas ] Kathey Marsden [ kmarsden ]
          Kathey Marsden made changes -
          Resolution Fixed [ 1 ]
          Status Closed [ 6 ] Reopened [ 4 ]
          Kathey Marsden made changes -
          Link This issue is required by DERBY-4994 [ DERBY-4994 ]
          Rick Hillegas made changes -
          Fix Version/s 10.7.1.1 [ 12315564 ]
          Fix Version/s 10.7.1.0 [ 12314971 ]
          Rick Hillegas made changes -
          Status Open [ 1 ] Closed [ 6 ]
          Issue & fix info [Patch Available]
          Fix Version/s 10.7.0.0 [ 12314971 ]
          Resolution Fixed [ 1 ]
          Rick Hillegas made changes -
          Issue & fix info [Patch Available]
          Rick Hillegas made changes -
          Rick Hillegas made changes -
          Assignee Rick Hillegas [ rhillegas ]
          Dag H. Wanvik made changes -
          Affects Version/s 10.4.3.0 [ 12313654 ]
          Dag H. Wanvik made changes -
          Affects Version/s 10.5.4.0 [ 12314154 ]
          Mike Matrigali made changes -
          Component/s SQL [ 11408 ]
          Rick Hillegas made changes -
          Link This issue blocks DERBY-479 [ DERBY-479 ]
          Rick Hillegas made changes -
          Link This issue relates to DERBY-1030 [ DERBY-1030 ]
          Rick Hillegas made changes -
          Field Original Value New Value
          Attachment derby-4459.sql [ 12426555 ]
          Attachment derby4459.java [ 12426556 ]
          Rick Hillegas created issue -

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development