1
0
mirror of https://github.com/django/django.git synced 2025-11-07 07:15:35 +00:00

Renamed Sqlite and Sqlite3 references to SQLite.

This commit is contained in:
Nick Pope
2018-12-22 23:11:36 +00:00
committed by Tim Graham
parent 7534e43497
commit e626a3f993
6 changed files with 8 additions and 9 deletions

View File

@@ -289,7 +289,7 @@ class DatabaseIntrospection(BaseDatabaseIntrospection):
# Get the index info
cursor.execute("PRAGMA index_list(%s)" % self.connection.ops.quote_name(table_name))
for row in cursor.fetchall():
# Sqlite3 3.8.9+ has 5 columns, however older versions only give 3
# SQLite 3.8.9+ has 5 columns, however older versions only give 3
# columns. Discard last 2 columns if there.
number, index, unique = row[:3]
# Get the index info for that index