Page 1 of 1

Error with dotConnect 5.0.20.0 when Sort desc

Posted: Fri 23 Jan 2009 11:38
by dqminh
Hi, dotConnect version 5.0.20.0, db Oracle.

1. Create table
2. Generate code C# (Entity Developer for dotConnect)
3. Code:

Code: Select all

PartDataContext db = DCFactory.GetDataContext();
var d = db.Dealers.OrderByDescending(p => p.DealerCode).Skip(1).Take(10).AsEnumerable();
Exception:

ORA-00904: "T2"."DEALER_CODEDESC": invalid identifier

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: Devart.Data.Oracle.OracleException: ORA-00904: "T2"."DEALER_CODEDESC": invalid identifier

Maybe, in the generated sql query, you forget the space between field name and DESC :D

Posted: Fri 23 Jan 2009 13:28
by AndreyR
Thank you for the report, the bug has been fixed.
This fix will be available in the nearest build.