When you are 'using() block' you can pass the dataReader by ref.
To resolve IBATISNET-172 and improve IDataReader memory transformation, I need to pass the dataReader by ref to the result strategy, so I replace the using block by a try catch with indeed is the same.
 
We need it because it there is an exception in the result strategy the IDataReader must be close, this was done by the using block and now by the try/catch/finally.
 
do we need the catch, I don't know be but in doubt.

Reply via email to