Ticket #3820: oracle_cursor.patch
File oracle_cursor.patch, 1.2 KB (added by , 18 years ago) |
---|
-
django/db/backends/oracle/base.py
285 285 else: 286 286 yield field 287 287 288 for unresolved_row in cursor :288 for unresolved_row in cursor.fetchall(): 289 289 row = list(resolve_cols(unresolved_row)) 290 290 if fill_cache: 291 291 obj, index_end = get_cached_row(self.model, row, 0) -
django/db/backends/oracle/introspection.py
6 6 def get_table_list(cursor): 7 7 "Returns a list of table names in the current database." 8 8 cursor.execute("SELECT TABLE_NAME FROM USER_TABLES") 9 return [row[0].upper() for row in cursor ]9 return [row[0].upper() for row in cursor.fetchall()] 10 10 11 11 def get_table_description(cursor, table_name): 12 12 "Returns a description of the table, with the DB-API cursor.description interface."