For example, I created a new index that uses an expression in PostgreSQL, using the following SQL query:
CREATE INDEX idx_table1_field1_field2 ON table1(UPPER(field1), UPPER(field2));
I expected to see this index in FDTable.IndexDefs
, but this index does not exist in FDTable.IndexDefs
. I also expected to see an expression like field1;field2
for this index.
If I create a common index, I see it in FDTable.IndexDefs.
CREATE INDEX idx_table1_field1_field2 ON table1(field1, field2);
I tried another database, but the result is the same. FireDAC
ignores indexes that have an expression with concatenation, functions, etc. Probably, I am missing something?