Wrong result from function GetOrderBy (ora.pas)
Posted: Tue 21 Dec 2010 15:17
Steps to reproduce:
Call function GetOrderBy from unit ora.pas with this SQL-statement
and the result is an empty string!
If you use this SQL
or this
the result will be 'DUMMY'.
ODAC-Versions tested:
5.80.0.42 (Delphi 5)
7.0.0.2 (Delphi XE)
Call function GetOrderBy from unit ora.pas with this SQL-statement
Code: Select all
SELECT '(' || DUMMY || ') ' AS X
FROM DUAL
ORDER BY DUMMY
If you use this SQL
Code: Select all
SELECT '(' || DUMMY || ')' || ' ' AS X
FROM DUAL
ORDER BY DUMMY
Code: Select all
SELECT '(' || DUMMY || ')' AS X
FROM DUAL
ORDER BY DUMMY
ODAC-Versions tested:
5.80.0.42 (Delphi 5)
7.0.0.2 (Delphi XE)