Commit 7a5f419c authored by Marc Gravell's avatar Marc Gravell

Fix: multimap shouldn't assume it owns the connection

parent 61af54a5
......@@ -1073,7 +1073,7 @@ partial class DontMap { }
IDbCommand ownedCommand = null;
IDataReader ownedReader = null;
bool wasClosed = cnn.State == ConnectionState.Closed;
bool wasClosed = cnn != null && cnn.State == ConnectionState.Closed;
try
{
if (reader == null)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment