Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #15173 -- fixed the tests when run under pypy.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@15333 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 7c0e40534b7c2d8de9824a36824482d1067e195b 1 parent 7505abf
Alex Gaynor alex authored
Showing with 1 addition and 3 deletions.
  1. +1 −3 django/db/backends/sqlite3/introspection.py
4 django/db/backends/sqlite3/introspection.py
View
@@ -85,9 +85,7 @@ def get_relations(self, cursor, table_name):
table, column = [s.strip('"') for s in m.groups()]
cursor.execute("SELECT sql FROM sqlite_master WHERE tbl_name = %s", [table])
- result = cursor.fetchone()
- if not result:
- continue
+ result = cursor.fetchall()[0]
other_table_results = result[0].strip()
li, ri = other_table_results.index('('), other_table_results.rindex(')')
other_table_results = other_table_results[li+1:ri]
Please sign in to comment.
Something went wrong with that request. Please try again.