Stored Procedure Output parameters returning NULL
Posted by: Aaron Spetner
Date: December 26, 2013 11:36AM

Using the following code:
MySqlParameter curParam = new MySqlParameter(elemParam.GetAttribute("dbName"), paramType);
curParam.Direction = System.Data.ParameterDirection.Output;
oCmd.Parameters.Add(curParam);

After executing the query (when the connection is still open), curParam.value returns NULL.

The stored procedure otherwise returns the correct results. Additionally, when running the Stored Procedure directly in the console, the output param returns correctly as well.

Is this a bug?

Options: ReplyQuote


Subject
Written By
Posted
Stored Procedure Output parameters returning NULL
December 26, 2013 11:36AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.