Commit aaa3f60b authored by mgravell's avatar mgravell

patch applied for issue 66

parent 71a94108
...@@ -431,9 +431,12 @@ public static IEnumerable<T> Query<T>(this IDbConnection cnn, string sql, object ...@@ -431,9 +431,12 @@ public static IEnumerable<T> Query<T>(this IDbConnection cnn, string sql, object
} }
// nice and simple // nice and simple
identity = new Identity(sql, commandType, cnn, null, (object)param == null ? null : ((object)param).GetType(), null); if ((object)param != null)
info = GetCacheInfo(identity); {
return ExecuteCommand(cnn, transaction, sql, info.ParamReader, (object)param, commandTimeout, commandType); identity = new Identity(sql, commandType, cnn, null, (object) param == null ? null : ((object) param).GetType(), null);
info = GetCacheInfo(identity);
}
return ExecuteCommand(cnn, transaction, sql, (object)param == null ? null : info.ParamReader, (object)param, commandTimeout, commandType);
} }
#if !CSHARP30 #if !CSHARP30
/// <summary> /// <summary>
......
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