Derby
  1. Derby
  2. DERBY-4410

NullPointerException when USING clause contains all columns in both join tables

    Details

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

      Description

      ij> create table t(x int);
      0 rows inserted/updated/deleted
      ij> select t1., t2. from t t1 join t t2 using ;
      ERROR XJ001: Java exception: ': java.lang.NullPointerException'.

      This statement should have raised an exception because both t1.* and t2.* expand to no columns. See DERBY-4407.

      1. adjustIndexWithTest.diff
        2 kB
        Knut Anders Hatlen
      2. adjustIndex.diff
        1 kB
        Knut Anders Hatlen

        Issue Links

          Activity

          Knut Anders Hatlen created issue -
          Knut Anders Hatlen made changes -
          Field Original Value New Value
          Summary NullPointerException during bind when b NullPointerException when USING clause contains all columns
          Affects Version/s 10.6.0.0 [ 12313727 ]
          Issue & fix info [Repro attached]
          Description ij> create table t(x int);
          0 rows inserted/updated/deleted
          ij> select t1.*, t2.* from t t1 join t t2 using (x);
          ERROR XJ001: Java exception: ': java.lang.NullPointerException'.

          This statement should have raised an exception because both t1.* and t2.* expand to no columns. See DERBY-4407.
          Component/s SQL [ 11408 ]
          Knut Anders Hatlen made changes -
          Link This issue relates to DERBY-4370 [ DERBY-4370 ]
          Knut Anders Hatlen made changes -
          Link This issue relates to DERBY-4407 [ DERBY-4407 ]
          Knut Anders Hatlen made changes -
          Summary NullPointerException when USING clause contains all columns NullPointerException when USING clause contains all columns in both join tables
          Knut Anders Hatlen made changes -
          Assignee Knut Anders Hatlen [ knutanders ]
          Knut Anders Hatlen made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          Knut Anders Hatlen made changes -
          Attachment adjustIndex.diff [ 12422566 ]
          Knut Anders Hatlen made changes -
          Attachment adjustIndexWithTest.diff [ 12422673 ]
          Knut Anders Hatlen made changes -
          Issue & fix info [Repro attached] [Patch Available, Repro attached]
          Knut Anders Hatlen made changes -
          Status In Progress [ 3 ] Closed [ 6 ]
          Issue & fix info [Repro attached, Patch Available] [Repro attached]
          Fix Version/s 10.6.0.0 [ 12313727 ]
          Resolution Fixed [ 1 ]
          Gavin made changes -
          Workflow jira [ 12479566 ] Default workflow, editable Closed status [ 12798506 ]

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development