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

NPE in StaticCallMethod#coerceMethodParameter with a constant argument to INOUT parameter

    XMLWordPrintableJSON

Details

    • Regression

    Description

      The following repro shows the problem (provided by Holger Rehn, cf. issue DERBY-5945).

      sta.execute( "create procedure PROC( inout x int ) " +
      "parameter style java modifies sql data language java " +
      "external name 'DUMMY.PROC'" );
      sta.execute( "

      {call PROC(1)}

      " );

      gives NPE on trunk (even before the fixes introduced for DERBY-5945), but not on 10.9, so I believe it's a regression:

      :
      Caused by: java.lang.NullPointerException
      ...sql.compile.StaticMethodCallNode.coerceMethodParameter(StaticMethodCallNode.java:702)
      ...sql.compile.StaticMethodCallNode.resolveRoutine(StaticMethodCallNode.java:620)
      ...sql.compile.StaticMethodCallNode.bindExpression(StaticMethodCallNode.java:210)
      ...sql.compile.JavaToSQLValueNode.bindExpression(JavaToSQLValueNode.java:237)
      ...sql.compile.CallStatementNode.bindStatement(CallStatementNode.java:126)
      ...sql.GenericStatement.prepMinion(GenericStatement.java:400)
      :

      Attachments

        1. derby-6047-01-aa-passRoutineInfo.diff
          5 kB
          Richard N. Hillegas

        Issue Links

          Activity

            People

              rhillegas Richard N. Hillegas
              dagw Dag H. Wanvik
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: