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)