Changeset 2347
- Timestamp:
- 02/18/06 15:28:19 (3 years ago)
- Files:
-
- django/trunk/django/core/db/backends/mysql.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/django/core/db/backends/mysql.py
r2346 r2347 137 137 138 138 def get_indexes(cursor, table_name): 139 "Returns a dict of indexes for given table" 139 """ 140 Returns a dictionary of fieldname -> infodict for the given table, 141 where each infodict is in the format: 142 {'keyname': 'name of key', 143 'unique': boolean representing whether it's a unique index} 144 """ 140 145 cursor.execute("SHOW INDEX FROM %s" % DatabaseWrapper().quote_name(table_name)) 141 146 indexes = {}
