Ticket #3820: oracle_cursor.patch

File oracle_cursor.patch, 1.2 KB (added by Ben Khoo <benk@…>, 18 years ago)
  • django/db/backends/oracle/base.py

     
    285285                    else:
    286286                        yield field
    287287
    288             for unresolved_row in cursor:
     288            for unresolved_row in cursor.fetchall():
    289289                row = list(resolve_cols(unresolved_row))
    290290                if fill_cache:
    291291                    obj, index_end = get_cached_row(self.model, row, 0)
  • django/db/backends/oracle/introspection.py

     
    66def get_table_list(cursor):
    77    "Returns a list of table names in the current database."
    88    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()]
    1010
    1111def get_table_description(cursor, table_name):
    1212    "Returns a description of the table, with the DB-API cursor.description interface."
Back to Top