i'm just walking first steps with unidac, migrating a project from SDAC.
Please, try with TUniQuery (abstract)
Code: Select all
...
UniQuery1.SQL.text := 'SELECT * FROM DEPT WHERE DEPTNO > 10 ORDER BY DEPTNO';
UniQuery1.SetOrderBy('LOC');
UniQuery1.Open; // causes an Error
// because SQL is now
// 'SELECT * FROM DEPT order by loc WHERE DEPTNO > 10 ORDER BY DEPTNO';
Thanks
Tino
Edit:
... never do 2 changes at once ..
I used until today SDAC 3.8 : here the ORDER BY Clause was substituted.
The shown problem is in SDAC 4.5 AND UniDac 1 .