Skip to content

Can't get transactions working #10

@IntelOrca

Description

@IntelOrca

I am having trouble getting transactions working, the following code:

using (var conn = new MySqlConnection(connString))
{
    conn.Open();
    using (conn.BeginTransaction())
    {
        Console.WriteLine("Test");
    }
}

gives this exception:

Unhandled Exception: MySql.Data.MySqlClient.MySqlException: PROCEDURE mydb.BEGIN does not exist
   at MySql.Data.MySqlClient.MySqlStream.ReadPacket()
   at MySql.Data.MySqlClient.NativeDriver.GetResult(Int32& affectedRow, Int64& insertedId)
   at MySql.Data.MySqlClient.Driver.NextResult(Int32 statementId, Boolean force)
   at MySql.Data.MySqlClient.MySqlDataReader.NextResult()
   at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)
   at MySql.Data.MySqlClient.MySqlCommand.ExecuteNonQuery()
   at MySql.Data.MySqlClient.MySqlConnection.BeginTransaction(IsolationLevel iso)
   at ConsoleApplication.Program.Main(String[] args)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions