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

ROW_NUMBER function throws NullPointerException in UPDATE statement

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 10.10.2.0
    • 10.10.2.1, 10.11.1.1, 10.12.1.1
    • SQL
    • 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.diff
          1 kB
          Dag H. Wanvik
        2. derby-6565-forbid.diff
          8 kB
          Dag H. Wanvik
        3. derby-6565-forbid.status
          0.9 kB
          Dag H. Wanvik

        Issue Links

          Activity

            People

              dagw Dag H. Wanvik
              knutanders Knut Anders Hatlen
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: