cannot locate through dataset by value of auto-inc keyField
Original Reporter info from Mantis: Penilopa P
-
Reporter name: Anton
Original Reporter info from Mantis: Penilopa P
- Reporter name: Anton
Description:
When attempting to invoke
SQLDataset.Locate('id', 1, [])
the error "AutoInc fields are read-only" occurs.
Steps to reproduce:
Testing project is in attached zip. Compile, run, click "Load" and choose file "data". Try to locate by clicking on "Locate NAME" and "Locate ID" buttons.
Locate by field "name" works correctly cause this is varchar(20) field. Locate by field "id" leads to error