From fc74f4d06d1f137638740c574142edff5070f25d Mon Sep 17 00:00:00 2001 From: inga-lovinde <52715130+inga-lovinde@users.noreply.github.com> Date: Mon, 7 Jun 2010 15:48:52 +0000 Subject: [PATCH] Workaround for bug in mysql (for some reason, call to BeginTransaction with IsolationLevel set fails somewhere deep in mysql library) --- MySQLConnector/Transaction.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/MySQLConnector/Transaction.cs b/MySQLConnector/Transaction.cs index 0fe0c45..6d4f933 100644 --- a/MySQLConnector/Transaction.cs +++ b/MySQLConnector/Transaction.cs @@ -19,7 +19,8 @@ namespace FLocal.MySQLConnector { public Transaction(Connection connection, System.Data.IsolationLevel iso) : base() { this.sqlconnection = connection.createConnection(); try { - this.sqltransaction = this.sqlconnection.BeginTransaction(iso); + //for some reason, call to BeginTransaction with IsolationLevel set fails somewhere deep in mysql library + this.sqltransaction = this.sqlconnection.BeginTransaction(); } catch(Exception e) { this.close(); throw e;