Closed v-pi closed 6 months ago
Since the insert operation occurs using the SQL in the PL/SQL context, you would need to use PL/SQL to perform the error handling if you are expecting an error collection to be returned, However, I don't know if PL/SQL has this capability. You can try asking the question on the Oracle SQL and PL/SQL discussion forum.
If it's not available, then this would be a new feature request for the PL/SQL team to implement.
If available, you could pass this PL/SQL error collection to ODP.NET.
Hello,
We use stored procedures a lot in our code base and I was trying to identify the culprit of an exception when I use array binding with a stored procedure. But unlike for direct SQL text commands, stored procedures do not seem to return the OracleError with ArrayBindIndex that would allow me to find which of my elements caused an exception.
Repro case below : PL/SQL :
C# :
Is this the intended behavior ? Or is there some other way to find which element caused the issue ? If this is not intended, is a fix possible in a future version ?
Thanks and regards, Valentin