'Field X not found.' bug
Posted: Mon 24 Jan 2005 13:24
Hi there.
There is a bug in ODAC or CRDBGrid control (I think it is in TCRDBGrid).
It happens when I exec query with 'order by' clause with two identical names and then I start another query without order by clause.
Here is the example:
ant after execution I execute another query
f.ex.:
Then I got the error 'Field date not found.'
In the example there is no need to use such a stupid order by that I have made but it is just a simplification because this bug also happens when I use more than one table (that have the same field name - which I use in order by)
There is a bug in ODAC or CRDBGrid control (I think it is in TCRDBGrid).
It happens when I exec query with 'order by' clause with two identical names and then I start another query without order by clause.
Here is the example:
Code: Select all
select * from dbversion d
order by date, d.date
f.ex.:
Code: Select all
select * from emp
In the example there is no need to use such a stupid order by that I have made but it is just a simplification because this bug also happens when I use more than one table (that have the same field name - which I use in order by)