AddIndex creates bad index if table is not open

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

This topic contains 1 reply, has 2 voices, and was last updated by  kimbomadsen 2 weeks, 2 days ago.

  • 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

You must be logged in to reply to this topic.