PLS-00306: wrong number or types of arguments in call to 'OUTPUT_ARRAY'

前端 未结 1 1852
我寻月下人不归
我寻月下人不归 2021-01-23 18:26

I\'m stuck with this error and really don\'t know how to fix it. Maybe i\'m passing array in improper way?

This is main sql file.

DECLARE
  v_array_lengt         


        
相关标签:
1条回答
  • 2021-01-23 18:50

    The type definition in main sql file is not the type that is expected by the package subroutine. IOPACKAGE.OUTPUT_ARRAY-subroutine expects type IOPACKAGE.NUMBER_ARRAY_TYPE. You don't have to re-define the type. The following should work:

    declare
      v_array IOPACKAGE.NUMBER_ARRAY_TYPE;
    begin
      IOPACKAGE.OUTPUT_ARRAY(v_array);
    end;
    

    See the difference between IOPACKAGE.NUMBER_ARRAY_TYPE and NUMBER_ARRAY_TYPE. They are similar but not the same.

    0 讨论(0)
提交回复
热议问题