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

SQLSTATE 38000 (NullPointerException) at inner self join and value(x1, x2...)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 10.1.1.0, 10.1.2.1, 10.1.3.1, 10.2.1.6, 10.2.2.0, 10.3.1.4, 10.3.2.1, 10.3.3.0, 10.4.1.3, 10.4.2.0, 10.5.1.1
    • 10.5.3.1, 10.6.1.0
    • SQL
    • None
    • WINXP
    • Normal
    • Repro attached

    Description

      create table xyz (c1 int, c2 int);
      insert into xyz values(1,2);

      select * from xyz t1 inner join xyz t2 on t1.c1 = t2.c1 where value(t1.c1, t1.c2) = 1;

      causes the following error:

      FEHLER 38000: Bei der Auswertung eines Ausdrucks wurde die Ausnahme 'java.lang.NullPointerException' ausgeloest.
      FEHLER XJ001: Java-Ausnahme: ': java.lang.NullPointerException'.

      Attachments

        1. derby-4342-1a.diff
          2 kB
          Knut Anders Hatlen

        Issue Links

          Activity

            People

              knutanders Knut Anders Hatlen
              xyz123@quantentunnel.de Hubert Garm
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: