DelphiRazor icon indicating copy to clipboard operation
DelphiRazor copied to clipboard

Check EOF after TDataSet.Next to prevent double-handling of last record

Open kevind7 opened this issue 7 years ago • 0 comments

The check for EOF has been modified so it is called directly after the call to Next. Previously, the ForEach loop was accessing the last record in a dataset twice. Extra unit tests have been added to cover ForEach with datasets.

Thanks

Kevin Dean

kevind7 avatar Jun 20 '18 02:06 kevind7