Subject | Re: [ib-support] Record Count |
---|---|
Author | Nando Dessena |
Post date | 2001-11-08T08:20:45Z |
Woody,
actually works).
names, and that your select does not use a distinct clause or
aggregates, as this approach would fail.
Years ago I hit this kind of problems and I had to rewrite my
SQL-manipulating functions to do real parsing, that's why I am warning
you.
Ciao
--
____
_/\/ando
> Sure, here it is. As you can see, I use the IBX components but you canIBO does this automatically when a call to RecordCount is made (and it
> change this to use whichever query components that you use.
actually works).
> ibCount.SQL.Text := 'Select Count(*) ' +Just hope you don't have the word 'from' in any of the select field
> copy(Query.SQL.Text, pos('from', lowercase(Query.SQL.Text)),
> length(Query.SQL.Text));
names, and that your select does not use a distinct clause or
aggregates, as this approach would fail.
Years ago I hit this kind of problems and I had to rewrite my
SQL-manipulating functions to do real parsing, that's why I am warning
you.
Ciao
--
____
_/\/ando