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

NullPointerException when comparing indexed column with result from a set operation

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 10.2.2.0, 10.3.3.0, 10.4.2.0, 10.5.3.0, 10.6.1.0
    • 10.5.3.1, 10.6.1.0
    • SQL
    • None
    • 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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment