Whenever I try to utilize a stored procedure call 'Insert_manacost_bridge_entry(pColor VARCHAR, pCost INT, pCard_ID INT)' I get the following result: The value passed in the pCost parameter is in place of the pColor field in the db record.
I attached the C# code and the mysql routine.
Testing done with weird results:
if I invoke the routine by performing a Call from the MySqlCommand as shown below and pass the params right there, the result is recorded correctly. If I uncomment the Params.Add(..) lines ... this is when pCost is in the place of pColor while pCost will be a 0 value in the db.
MySqlCommand cmd2 = conn.CreateCommand();
//cmd2.Parameters.Add("pColor", MySqlDbType.VarChar).Value = "RED";//cmd2.ExecuteNonQuery(); |
Replies
Know the answer? Post it — somebody with the same question will find it here.