TBufDataset Unique/Primary index is not enforcing uniqueness lazarus / 16-Databases ---------------------------------------------------------------------- RedOctober · 2018-02-12 17:43 Platform: Laz 1.8.1, Fpc 3.0.5, OS: Windows Server Essentials 2016 I think TBufDataset has a bug whereby the uniqueness of an ixPrimary or ixUnique index is not being enforced, which allows duplicate records to be entered. I have attached a sample project.  Pls let me know if I'm doing something wrong.  Also.. IndexDefs are not being saved with the TBufDataset.SaveToFile. I have to recreate them in code each time the user starts my app.