Recent

Author Topic: TBufDataset Unique/Primary index is not enforcing uniqueness  (Read 580 times)

RedOctober

  • Sr. Member
  • ****
  • Posts: 268
TBufDataset Unique/Primary index is not enforcing uniqueness
« on: February 12, 2018, 06:43:35 pm »
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.