View Issue Details

IDProjectCategoryView StatusLast Update
0020043FPCDatabasepublic2011-10-15 18:21
ReporterHert Vanz Assigned ToJoost van der Sluis  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
PlatformallOSall 
Product Version2.5.1 
Fixed in Version3.0.0 
Summary0020043: BufDataSet doesn't support the ixDescending index option
DescriptionCreating an index on a TBufDataset with the descending option ixDescending included won't result in a descending index.
Steps To ReproduceCall AddIndex on a TBufDataset and include the ixDescending option and without passing specific descending fields.
Additional InformationIt is possible to specify descending fields, but when the ixDescending option for an index is included then the full index should be considered descending.

Possible solution:
In TCustomBufDataset.BuildIndex find the line

DBCompareStruct[FieldNr].Desc := (DescIndexFields.IndexOf(AField)>-1);

and change it in:
DBCompareStruct[FieldNr].Desc := (DescIndexFields.IndexOf(AField)>-1) or (ixDescending in Options);

TagsNo tags attached.
Fixed in Revision19496
FPCOldBugId
FPCTarget
Attached Files

Activities

Marco van de Voort

2011-10-15 18:21

manager   ~0053021

Committed for now, so I hope the new bufdataset testsuite can test it more thoroughly. Thanks.

Issue History

Date Modified Username Field Change
2011-08-24 14:58 Hert Vanz New Issue
2011-08-24 14:58 Hert Vanz Status new => assigned
2011-08-24 14:58 Hert Vanz Assigned To => Joost van der Sluis
2011-10-15 18:21 Marco van de Voort Fixed in Revision => 19496
2011-10-15 18:21 Marco van de Voort Status assigned => resolved
2011-10-15 18:21 Marco van de Voort Fixed in Version => 2.7.1
2011-10-15 18:21 Marco van de Voort Resolution open => fixed
2011-10-15 18:21 Marco van de Voort Note Added: 0053021