index were not sorted correctly; they are now sorted
in order of RDB$FIELD_POSITION.
.. changelog::
:version: 0.8.5
+ .. change::
+ :tags: bug, firebird
+ :versions: 0.9.0b2
+
+ Fixed bug in Firebird index reflection where the columns within the
+ index were not sorted correctly; they are now sorted
+ in order of RDB$FIELD_POSITION.
+
.. change::
:tags: bug, firebird
:versions: 0.9.0b2
ic.rdb$index_name
WHERE ix.rdb$relation_name=? AND ix.rdb$foreign_key IS NULL
AND rdb$relation_constraints.rdb$constraint_type IS NULL
- ORDER BY index_name, field_name
+ ORDER BY index_name, ic.rdb$field_position
"""
c = connection.execute(qry, [self.denormalize_name(table_name)])