Problem with QueryRecCount option of TIBCQuery
Posted: Wed 03 Feb 2010 15:14
Hello,
I'm executing the following SQL statement against a Firebird 2.5 database:
The query executes fine when QueryRecCount is set to False, but fails when QueryRecCount is set to True. The problem seems to be the usage of field alias names in the GROUP BY clause.
Comments?
Thanks,
Thomas
I'm executing the following SQL statement against a Firebird 2.5 database:
Code: Select all
SELECT T.DATABASE_NAME, SUM(T.NUMBER_OF_READS), SUM(T.NUMBER_OF_FETCHES), cast (T.SQL_TEXT as varchar(1024)) sqltext , T.EVENT_NAME, count(*) sqlcount
FROM
TRACE_DATA_PARSED T
where T.DATABASE_NAME is not null and T.SQL_TEXT is not null
GROUP BY T.DATABASE_NAME, sqltext, T.EVENT_NAME
order by sqlcount desc
Comments?
Thanks,
Thomas