Menu

#35 Invalid Dataset.Fields[AIndex].DataType <ftAutoInc> tiQueryDataset.pas in line 395

v1.0 (example)
closed-fixed
None
5
2017-07-05
2015-06-23
No

Hello Friends

I added the unit tiQueryDataset in FieldKin method (AIndex: integer): TtiQueryFieldKind the ftAutoInc type to return qfkInteger as follows

ftSmallint,
     ftInteger,
     ftWord,
     ftAutoInc,
     ftLargeint:
         Result: = qfkInteger;

I did so because using MySQL5, found one of the fields is the ftAutoInc type, and without such an exception occurred.

The method implemented for this was the TtiObject.Read

I do not know if this is the best solution, so I'm posting for consideration of all.

I get a hand to help with anything you need.

grateful

Discussion

  • Graeme Geldenhuys

    I know this is a very old post, but I thought I would mention that this issue has been resolved in the tiopf2 and tiopf3 branches.

     
  • Graeme Geldenhuys

    • status: open --> closed-fixed
    • assigned_to: Graeme Geldenhuys
     

Log in to post a comment.