Permalink
Browse files

Minor oracle fixes

  • Loading branch information...
1 parent 157604a commit 5b522cd85a63cf5e352c500447aa91002e83845e @andrewgodwin andrewgodwin committed Aug 19, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 django/db/backends/oracle/introspection.py
@@ -180,7 +180,7 @@ def get_constraints(self, cursor, table_name):
"unique": unique,
"foreign_key": None,
"check": check,
- "index": True,
+ "index": True, # All P and U come with index, see inner join above
}
# Record the details
constraints[constraint]['columns'].append(column)
@@ -258,6 +258,7 @@ def get_constraints(self, cursor, table_name):
FROM user_constraints cons
WHERE cols.index_name = cons.index_name
)
+ ORDER BY cols.column_position
""", [table_name])
for constraint, column in cursor.fetchall():
# If we're the first column, make the record

0 comments on commit 5b522cd

Please sign in to comment.