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

ROW_NUMBER function throws NullPointerException in UPDATE statement

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 10.10.2.0
    • Fix Version/s: 10.10.2.1, 10.11.1.1, 10.12.1.1
    • Component/s: SQL
    • Labels:
      None

      Description

      A NullPointerException is raised with this (possibly illegal?) UPDATE statement:

      ij version 10.10
      ij> connect 'jdbc:derby:memory:db;create=true';
      ij> create table t(x int);
      0 rows inserted/updated/deleted
      ij> insert into t values 1;
      1 row inserted/updated/deleted
      ij> update t set x = row_number() over ();
      ERROR XJ001: Java exception: ': java.lang.NullPointerException'.
      

        Attachments

        1. derby-6565-forbid.status
          0.9 kB
          Dag H. Wanvik
        2. derby-6565-forbid.diff
          8 kB
          Dag H. Wanvik
        3. derby-6565.diff
          1 kB
          Dag H. Wanvik

          Issue Links

            Activity

              People

              • Assignee:
                dagw Dag H. Wanvik
                Reporter:
                knutanders Knut Anders Hatlen
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: