Quantcast
Channel: MySQL Forums - Connector/NET and C#, Mono, .Net
Viewing all articles
Browse latest Browse all 1447

Stored Procedure Output parameters returning NULL (no replies)

$
0
0
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?

Viewing all articles
Browse latest Browse all 1447

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>