Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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 authored January 27, 2011
4  django/db/backends/sqlite3/introspection.py
@@ -85,9 +85,7 @@ def get_relations(self, cursor, table_name):
85 85
             table, column = [s.strip('"') for s in m.groups()]
86 86
 
87 87
             cursor.execute("SELECT sql FROM sqlite_master WHERE tbl_name = %s", [table])
88  
-            result = cursor.fetchone()
89  
-            if not result:
90  
-                continue
  88
+            result = cursor.fetchall()[0]
91 89
             other_table_results = result[0].strip()
92 90
             li, ri = other_table_results.index('('), other_table_results.rindex(')')
93 91
             other_table_results = other_table_results[li+1:ri]

0 notes on commit 7c0e405

Please sign in to comment.
Something went wrong with that request. Please try again.