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

NPE in parameterized INSERT/SELECT

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 10.6.1.0
    • 10.6.2.1
    • SQL
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: