robconery/massive — Issue #129: Query method not closing the reader?
Author: jotte
Created: 2012-02-16 14:41:43+00:00
State: open

I may be wrong, but I'm using Massive against Oracle, and the Query(string sql, params object[] args) method called many times would increase the number of opened cursors close to thousand in my case!
I changed the line:
var rdr = CreateCommand(sql, conn, args).ExecuteReader();
to
using (var rdr = CreateCommand(sql, conn, args).ExecuteReader()) {...}
and the number of opened cursors never exceeded 12!
This is line #198

Thank you for your time!