Given a PostgreSQL table with an index like:
DROP INDEX IF EXISTS RefNo1;
CREATE INDEX RefNo1 ON MyTable (RefNo1 NULLS FIRST, Date DESC NULLS FIRST, GLPostDate DESC NULLS FIRST);
If I drop a TFDTable down, assign it to this table, and set the IndexName property to RefNo1 the resulting dataset has the null values at the bottom. Going through the trace log indicates that FireDAC selected without the NullsFirst option. So I go into FormatOptions.SortOptions and set NullsFirst to True. Still no change. Strs2EmptyNull provides no relief.
This is possible if I use TFDQuery in combination with managing the Indexes collection.
Am I missing something to get the NullsFirst option working in TFDTable? There's no Indexes collection under TFDTable. I can set IndexFieldNames like so:
refno1;date:D;glpostdate:D
But I see no option to specify NULLS FIRST.