AddIndex creates bad index if table is not open

Home Forums kbmMemTable AddIndex creates bad index if table is not open

Viewing 1 reply thread
  • Author
    Posts
    • #54200
      Mark Jones
      Participant

      Hi,

      In older versions (7.18) doing the following worked

      CreateTable

      AddIndex(…)

      Open

      But under 7.82 the index is broken, e.g. add a unique index and then add two records with different values and it fails with key violation.

      Fortunately I can work around it by changing AddIndex to IndexDefs.Add(…) and then create/open the table (but now just have to try and find all of the places in the code people might have done it the way above…)

      Thought you should know as my guess is that the new behavior might be unintended.

      Mark

    • #54212
      kimbomadsen
      Keymaster

      Hi,

      I can reproduce the issue. I will have a look at it.

      best regards

      Kim/C4D

Viewing 1 reply thread
  • You must be logged in to reply to this topic.
Skip to toolbar