MyQuery doesn't display anymore records when calling the FieldDefs Update method *Before* opening the dataset :
Just put a Dataset.FieldDefs.update in the OnBeforeOpen event and try to open your dataset
MyDAC 4.00.1.5 : Bug when calling DefsFields.Update
-
- Posts: 451
- Joined: Wed 19 Jan 2005 09:59
I found the same bug and had to roll back version. I made some investigation, i attached DBMonitor, and after doing this:
SQL at monitor is showed like:
That's why there are no records show.
Code: Select all
// MyQuery1.SQL -> SELECT cmcwin.conductos.* FROM cmcwin.conductos
MyQuery1.FieldDefs.Update;
MyQuery1.Open;
SQL at monitor is showed like:
Code: Select all
SELECT cmcwin.conductos.* FROM cmcwin.conductos
SELECT cmcwin.conductos.* FROM cmcwin.conductos LIMIT 0