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

NullPointerException when USING clause contains all columns in both join tables

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 10.6.1.0
    • 10.6.1.0
    • SQL
    • None
    • 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. adjustIndexWithTest.diff
          2 kB
          Knut Anders Hatlen
        2. adjustIndex.diff
          1 kB
          Knut Anders Hatlen

        Issue Links

          Activity

            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: