if I do:
select * from mysql.user
and then:
select
count(*)
from
mysql.user
in the same MyQuery, I get an error:
Wrong FUpdatingSQLObjIdx (E:\Developing\Components\CrMyDAC\Source\MyAccess.pas, line 2977)
In between, I do nothing but assigning the SQL, Prepare and Open.
Let me know if you can reproduce this.
--
Martijn Tonies
Upscene Productions
Error about FUpdatingSQLObjIdx when executing simple query
This seems to happen on prepared queries only.
here's what happens:
- prepare
- open
- change sql
- prepare
- open
However, in unit MyAccess, TCustomMyDataSet.InternalClose doesn't reset the FUpdatingSQLObjIdx item if it's prepared. So far, so good.
Now, change the SQL and call Prepare -> if the FUpdatingSQLObjIdx item had a value of "0", it doesn't get reset, although the SQL has changed.
IMO, this item should be set to "-1" if the SQL changes, so that the component set will attempt to detect the update table and so on.
Can you confirm?
--
Martijn Tonies
Upscene Productions
here's what happens:
- prepare
- open
- change sql
- prepare
- open
However, in unit MyAccess, TCustomMyDataSet.InternalClose doesn't reset the FUpdatingSQLObjIdx item if it's prepared. So far, so good.
Now, change the SQL and call Prepare -> if the FUpdatingSQLObjIdx item had a value of "0", it doesn't get reset, although the SQL has changed.
IMO, this item should be set to "-1" if the SQL changes, so that the component set will attempt to detect the update table and so on.
Can you confirm?
--
Martijn Tonies
Upscene Productions