I am designing a Form for data entry to a mysql database. Nothing fancy. This is my first time using c# to communicate with a mysql db. I get a very strange error in results.
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.
Answers
Know the answer? Post it. Somebody with the same question will find it here.