Menu

#109 "Locate" not working on integer fields (dbase type "I")

Win32/Linux
open
nobody
None
5
2022-11-03
2022-11-03
iret
No

Working with an existing database I found this problem:

  • Integer fields are handled as "ftString" in TIndexCursor.VariantToBuffer
  • --> Locate always returns false because the key buffer is not filled correctly

Attached you will find:

  • A lazarus project & little database to demonstrate the problem
  • My patch for this problem (maybe not the best and/or full solution)
2 Attachments

Discussion


Log in to post a comment.