Im having trouble with a stored procedure, I can't commit after I execute it. Its showing this error "[System.Data.Odbc.OdbcException] = {"ERROR [HY000] [MySQL][ODBC 5.1 Driver]Commands out of sync; you can't run this command now"}"
The SP by itself works fine. does anyone have idea of what might be happening?
thanks.
UPDATE: in C# I wasn't closing the reader before commiting.
OdbcDataReader reader = cmd.ExecuteReader();
if (reader.Read())
{
result = Convert.ToBoolean(reader[0]);
}
reader.Close(); //this line was not here when I had the error
cmd.Transaction.Commit();