I have a problem with Zeos 6.5.1 and MySQL temporary tables.
If I try to post something into them via the TDataset.Edit/post method Delphi raises an exception like "Cannot update this query type".
Tables are dynamically created during run-time (on startup) and are used as temporary stockage of data. The funny thing is that if I create the same tables without the "Temporary" directive it works perfectly! Any ideas?
Ah, the code snippet of the table creatin in could help:
Code: Select all
ExecQuery(frmMain.qryWork,'Drop Table If Exists TMP_POSTAVKE');
ExecQuery(frmMain.qryWork,'Create '+TblType+' Table If Not Exists TMP_POSTAVKE Select * From IZH_POSTAVKE Where DOK_ID=999999');
ExecQuery(frmMain.qryWork,'Alter Table TMP_POSTAVKE Add Primary Key (DOK_TIP,DOK_ID,ARTIKEL_ID,UNIQ)');
- TblType can be "" or " Temporary ". if "" no problem, if "Temporary", exception raises after data post in dataset.
- ExecQuery() is just a shortage for Query.SQL.Text := X; Query.ExecSQL or Open (depends on the query type);
I think it's an important feature so please developers, could you take a look on this, please. I need it very much, so I'll try to debug, but I'm not an expert in Zeos, so help is needed very much.