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

NullPointerException when USING clause contains all columns in both join tables

    Details

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

        Attachments

        1. adjustIndex.diff
          1 kB
          Knut Anders Hatlen
        2. adjustIndexWithTest.diff
          2 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: