Null values in array returned from PL/SQL procedure
Posted: Wed 15 Apr 2009 14:23
Hi,
I'm having a problem with an integer array returned as OUT parameter from a PL/SQL procedure.
The array is define in Oracle as
TYPE t_integer
IS
TABLE OF INTEGER
INDEX BY PLS_INTEGER;
On the Oracle side the array filled with integers and NULL values.
On the client side (.NET CF) the parameter is declared as
cmd.Parameters.Add("sk", OracleDbType.Integer);
cmd.Parameters["sk"].Direction = ParameterDirection.Output;
cmd.Parameters["sk"].ArrayLength = 100;
It seems that NULL values are converted to 0 values.
How can I solve this without having to change the type to for instance varchar?
Best Regards,
Marc
I'm having a problem with an integer array returned as OUT parameter from a PL/SQL procedure.
The array is define in Oracle as
TYPE t_integer
IS
TABLE OF INTEGER
INDEX BY PLS_INTEGER;
On the Oracle side the array filled with integers and NULL values.
On the client side (.NET CF) the parameter is declared as
cmd.Parameters.Add("sk", OracleDbType.Integer);
cmd.Parameters["sk"].Direction = ParameterDirection.Output;
cmd.Parameters["sk"].ArrayLength = 100;
It seems that NULL values are converted to 0 values.
How can I solve this without having to change the type to for instance varchar?
Best Regards,
Marc