Wrong result from function GetOrderBy (ora.pas)

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
cis-wurzen
Posts: 75
Joined: Tue 04 Jan 2005 10:26

Wrong result from function GetOrderBy (ora.pas)

Post by cis-wurzen » Tue 21 Dec 2010 15:17

Steps to reproduce:

Call function GetOrderBy from unit ora.pas with this SQL-statement

Code: Select all

SELECT '(' || DUMMY || ') ' AS X
FROM DUAL
ORDER BY DUMMY
and the result is an empty string!

If you use this SQL

Code: Select all

SELECT '(' || DUMMY || ')' || ' ' AS X
FROM DUAL
ORDER BY DUMMY
or this

Code: Select all

SELECT '(' || DUMMY || ')' AS X
FROM DUAL
ORDER BY DUMMY
the result will be 'DUMMY'.

ODAC-Versions tested:
5.80.0.42 (Delphi 5)
7.0.0.2 (Delphi XE)

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Post by AlexP » Tue 21 Dec 2010 16:00

Hello,

Thank you for the information.
We have reproduced the problem.
We will notify you as soon as we have any results.

bork
Devart Team
Posts: 649
Joined: Fri 12 Mar 2010 07:55

Post by bork » Fri 24 Dec 2010 10:09

Hello

We have fixed this issue. This fix will be included in the next ODAC build.

Post Reply