]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
- Fixed bug in Firebird index reflection where the columns within the
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 27 Dec 2013 18:20:58 +0000 (13:20 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 27 Dec 2013 18:20:58 +0000 (13:20 -0500)
index were not sorted correctly; they are now sorted
in order of RDB$FIELD_POSITION.

doc/build/changelog/changelog_08.rst
lib/sqlalchemy/dialects/firebird/base.py

index 5dd7ca92742939a8e83de41b2f1fe3f45a6e66a7..9f2479c2e80b6686f727513893d3c76baae202e6 100644 (file)
 .. 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
index dcaa68f4e7ba2ec0873e4037c51773500113ab2b..e6eb276613631745bcfeaaf6b170d1d3386db8a6 100644 (file)
@@ -700,7 +700,7 @@ class FBDialect(default.DefaultDialect):
                         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)])