I have a stored procedure which takes two collections amongst its parameters. The first is a collection of raw(32) and the second a collection of ints (both of these are defined as types using varrays).
In my test script both are declared & initialised in the same way:
declare
carray catarray; -- the varray of raws
iarray itemarray; -- the varray of ints
begin
carray := catarray('ABC', '123');
iarray := itemarray(0, 1);
However - when I get in to my stored procedure carray is shown up as a null collection although iarray is a valid collection.
Why is this? Should I explicitly be converting those strings to raws before initialising the collection?
Thanks
Alex
In my test script both are declared & initialised in the same way:
declare
carray catarray; -- the varray of raws
iarray itemarray; -- the varray of ints
begin
carray := catarray('ABC', '123');
iarray := itemarray(0, 1);
However - when I get in to my stored procedure carray is shown up as a null collection although iarray is a valid collection.
Why is this? Should I explicitly be converting those strings to raws before initialising the collection?
Thanks
Alex