Menu

#627 Quicksort does not calc correct the calculated fields (SQLite)

8.0.0
open
nobody
Quicksort (1)
Bug Report
2025-08-07
2025-04-05
MmVisual
No

"FieldName1" and "FieldName2" are calculated fields.

Example:
TZQuery.SortedFields := 'FieldName1;FieldName2';
TZQuery.SortType := stAscending;

All rows from "FieldName1" are NULL and declared als Float field.
All rows from "FieldName2" are NULL and declared als Float field, but only one column has the value 20.0.
The sorting from "FieldName2" is wrong.

If the query has only one field:
TZQuery.SortedFields := 'FieldName2';
Then it works.

Used database: SQLite

Discussion

  • MmVisual

    MmVisual - 2025-04-05

    Addition information:
    This calculated field is type String. The String filled in the field. But Zeos cannot read it.

     
  • MmVisual

    MmVisual - 2025-04-05

    Additional information:
    ColumnIndex: 5
    FColumnTypes[5]: stString

     
  • MmVisual

    MmVisual - 2025-04-05

    Additional information:
    The calculated field use Zeos as "stAsciiStream" and not with the configurated type (String or Double). Reading from this field as stAsciiStream fails.

    I'm sorry, I have no idea where I can make the change to fix this bug.

     

Log in to post a comment.