Problem with SetOrderBy in 2.5

Discussion of open issues, suggestions and bugs regarding IBDAC (InterBase Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
xstef
Posts: 22
Joined: Sat 09 Sep 2006 20:44

Problem with SetOrderBy in 2.5

Post by xstef » Wed 28 May 2008 21:17

Hi, after installing and recompiling the project i got sql errors. This is what the sql monitor showed. As you can notice the ORDER by clause is in the wrong place. I am using SetOrderBy to set it by code.

select m.ppldid, m.pplsid, m.apptype, m.rvcsid, m.fromtbl,
m.totbl, m.termid, m.dvcsid, m.bdvcsid, m.printcopy,
m.incycle,
m.syncpplsid,
r.name rvcsname,
t.name termname,
d.name dvcsname,
d2.name dvcs2name,
p.name pplsname
from ppld m
left join rvcs r on m.rvcsid = r.rvcsid
left join term t on m.termid = t.termid
left join dvcs d on m.dvcsid = d.dvcsid
left join dvcs d2 on m.dvcsid = d2.dvcsid
left join ppls p on p.pplsid = m.syncpplsid
ORDER BY ppldid
where apptype = :apptype
and m.pplsid = :pplsid

Plash
Devart Team
Posts: 2844
Joined: Wed 10 May 2006 07:09

Post by Plash » Thu 29 May 2008 07:08

We have fixed this problem. The fix will be included in the next build of IBDAC.

Post Reply