Fix result of DBGrid.MyCompareBookmarks
Original Reporter info from Mantis: luizamerico
-
Reporter name: Luiz Americo
Original Reporter info from Mantis: luizamerico
- Reporter name: Luiz Americo
Description:
According to tests in various Delphi TDataset implementations CompareBookmarks should return 1 when nil is the first argument.
The attached patch that swaps the result when one of the arguments is nil.
In practice there should be no difference (it does not affect the search result and no nil value can reach this code).
I tested with TDbf and TSqlite3Dataset that implements the new behavior for CompareBookmarks and no problem at all.
See http://bugs.freepascal.org/view.php?id=28730 for more info
Mantis conversion info:
- Mantis ID: 28743
- Fixed in version: 1.7 (SVN)
- Fixed in revision: 52706 (#36c44993)
- Target version: 1.8