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

NullPointerException when comparing indexed column with result from a set operation

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 10.2.2.0, 10.3.3.0, 10.4.2.0, 10.5.3.0, 10.6.1.0
    • Fix Version/s: 10.5.3.1, 10.6.1.0
    • Component/s: SQL
    • Labels:
      None
    • Issue & fix info:
      Repro attached

      Description

      I'm reporting this issue on behalf of Bernt M. Johnsen.

      If an indexed column is compared with a UNION query (or some other set operation), a NullPointerException is raised, as can be seen by this sequence of statements in ij:

      ij> create table t(a int not null primary key, b int);
      0 rows inserted/updated/deleted
      ij> select * from t where a < (values 4 union values 4);
      ERROR XJ001: Java exception: ': java.lang.NullPointerException'.

        Attachments

        1. d4391-1a.diff
          4 kB
          Knut Anders Hatlen
        2. d4391-1a.stat
          0.2 kB
          Knut Anders Hatlen
        3. d4391-1b.diff
          4 kB
          Knut Anders Hatlen

          Issue Links

            Activity

              People

              • Assignee:
                knutanders Knut Anders Hatlen
                Reporter:
                knutanders Knut Anders Hatlen
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: