This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
A Null Reference Exception is thrown when passing a Guid Parameter to a Stored Procedure Query using Oracle ODP.Net. The AddParametersToCommand function calls new OracleParameter() directly instead of using the CreateParameter function in Oracle9OdpDataProviderAdapter. The CreateParameter Function checks for Guid datatype and properly converts it to a string to avoid this Null Reference Exception. Thanks, Jason Moore |
|
|
Thanks for reporting this, we deliberately don't call CreateParameter off the DataProviderAdapter because it may end up appending a prefix to the parameter name which will then leave it invalid. I will however add the Guid checks to the AddParametersToCommand function to cover this.
|
|
|
Just a quick note to let you know this updated has been merged in to the nightlies.
|
|