Hi,
I receive the following error message when reopening the TOracleDataSet component:
"All arrays must be of equal size for Array DML"
My component (odsValues) calls a stored procedure that gets an array of identifiers as input and returns a cursor. Therefore I declared two variables:
1.Ids as PL/SQL Table of integer type
2.Res as cursor
When I execute the following statements:
odsValues.Close;
odsValues.SetVariable('Ids', myIds);
odsValues.Open;
(myIds is a array of integers containing identifiers)
this works fine and returns results, but when I reassign the variable value so that my code looks as follows:
odsValues.Close;
odsValues.SetVariable('Ids', myIds);
odsValues.Open;
odsValues.Close;
odsValues.SetVariable('Ids', myIds);
odsValues.Open;
this fails on second Open method call with the message "All arrays must be of equal size for Array DML".
Please help since this disqualifies the usage of your package in my application.
------------------
I receive the following error message when reopening the TOracleDataSet component:
"All arrays must be of equal size for Array DML"
My component (odsValues) calls a stored procedure that gets an array of identifiers as input and returns a cursor. Therefore I declared two variables:
1.Ids as PL/SQL Table of integer type
2.Res as cursor
When I execute the following statements:
odsValues.Close;
odsValues.SetVariable('Ids', myIds);
odsValues.Open;
(myIds is a array of integers containing identifiers)
this works fine and returns results, but when I reassign the variable value so that my code looks as follows:
odsValues.Close;
odsValues.SetVariable('Ids', myIds);
odsValues.Open;
odsValues.Close;
odsValues.SetVariable('Ids', myIds);
odsValues.Open;
this fails on second Open method call with the message "All arrays must be of equal size for Array DML".
Please help since this disqualifies the usage of your package in my application.
------------------