TSQLQuery.UpdateIndexDefs
Original Reporter info from Mantis: >8<
-
Reporter name: Bug Import
Original Reporter info from Mantis: >8<
- Reporter name: Bug Import
Description:
Hi,
I don't know if it is a bug.
If I try to use the same TSQLQuery (creating just once and destroing it at end) on 2 (or multiple) differrent tables with different indexes is crashing (exception) with Field Not Found : &LtPos;index_field> (in TSQLQuery.InternalOpen line with F:=fieldbyname(s)).
To make me clear. First time when I do a query (select) is all ok but after the second query on other table with other index is crashing with that exception.
UpdateIndexDefs Is updating IndexDefs with the indexes BUT is not updateing ... is adding fields in list.
so all the time the index will be added on the end of list. Is that corect ? I'm not using in a correct way the API ? if that is correct then try to catch the error in a try except :)
Additional information:
Imported information
--------------------
Name: Adrian Stanila
Mail: sacx (at) ylabs.com
Mantis conversion info:
- Mantis ID: 779