IndexFieldNames problem

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
geanni
Posts: 10
Joined: Wed 28 Jul 2010 22:18

IndexFieldNames problem

Post by geanni » Thu 26 Aug 2010 10:28

Hi,

I have a problem related to IndexFieldNames on a query.
I have 3 entries int a table "users" and for "name" column I have: aa, ff, gg.

The code for sorting column is:

MyQuery1_bookings->IndexFieldNames = "name ASC CIS";
MyQuery1_bookings->IndexFieldNames = "name DESC CIS";

The problem is that the result is: ff, gg, aa for ASC and aa, gg, ff for DESC.
The problems seems to be "aa" because if a change it to "ab", "abaa" it works fine.

Is it a bug, or I done something wrong?
Thanks

Dimon
Devart Team
Posts: 2910
Joined: Mon 05 Mar 2007 16:32

Post by Dimon » Thu 26 Aug 2010 11:59

I can not reproduce the problem. Please send me a complete small sample to dmitryg*devart*com to demonstrate it, including a script to create and fill table.

Post Reply