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

NPE in parameterized INSERT/SELECT

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 10.6.1.0
    • Fix Version/s: 10.6.2.1
    • Component/s: SQL
    • Labels:
      None
    • Bug behavior facts:
      Regression, Seen in production

      Description

      The following script works on 10.5.3.0 but fails on 10.6.1.0. The script succeeds on 10.6.1.1, probably because of the fix for DERBY-4671.

      ij version 10.6
      ij> connect 'jdbc:derby:memory:db;create=true';
      ij> create table t
      (
      a int not null,
      c int
      );
      0 rows inserted/updated/deleted
      ij> create table s
      (
      a int not null,
      c int
      );
      0 rows inserted/updated/deleted
      ij> – fails on 10.6.1.0 but succeeds on 10.5.3.0
      prepare foo as 'insert into t select ?, c from s';
      ERROR XJ001: Java exception: ': java.lang.NullPointerException'.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                rhillegas Richard N. Hillegas
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: