TBufDataset autoincrement fields (ftAutoInc) don't work if dataset is closed and reopened
Original Reporter info from Mantis: tatamata
-
Reporter name: Zlatko Matić
Original Reporter info from Mantis: tatamata
- Reporter name: Zlatko Matić
Description:
When TBufDataset is created and opened, autoincrements fields (ftAutoInc) work correctly, but if dataset is closed and reopened, autoincrement fields don't work anymore, their values is Null.
Steps to reproduce:
- Set fielddefs of Dataset1, set one field to have data type ftAutoInc.
- Dataset1.CreateDataSet
- Dataset1.Open
- insert some values in records ---> autoincrement field is automatically increasing its value.
- Dataset1.Close
- Dataset1.Open
- Insert some values in records ---> autoincrement field is not increasing its value, it has null value.
Mantis conversion info:
- Mantis ID: 25628
- Build: CodeTyphon v. 4.70
- Version: 2.7.1
- Fixed in version: 3.0.0
- Fixed in revision: 26622 (#c4a981fa)
- Target version: 3.0.0