Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#3835 closed (fixed)

[boulder-oracle]: manage.py fails with TypeError

Reported by: frank.hoffsummer@… Owned by: adrian
Component: Core (Management commands) Version: other branch
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation:
Needs tests: Patch needs improvement:
Easy pickings: UI/UX:

Description

Hello, I am on oracle-boulder-sprint branch r4815
trying to use ./manage.py syncdb or ./manage.py inspectdb on an empty oracle database fails now with the following exception:

Traceback (most recent call last):
  File "./manage.py", line 11, in ?
    execute_manager(settings)
  File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/django/core/management.py", line 1702, in execute_manager
    execute_from_command_line(action_mapping, argv)
  File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/django/core/management.py", line 1602, in execute_from_command_line
    for line in action_mapping[action]():
  File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/django/core/management.py", line 869, in inspectdb
    for table_name in introspection_module.get_table_list(cursor):
  File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/django/db/backends/oracle/introspection.py", line 9, in get_table_list
    return [row[0].upper() for row in cursor]
TypeError: iteration over non-sequence

I could in an earlier revision use manage.py without getting this exception, so this must be new.
(the server is "Oracle 9i Enterprise Edition Release 9.2.0.7.0 - 64bit Production" and I can connect fine to the database with sqlplus)

Change History (2)

comment:1 Changed 8 years ago by bouldersprinters

  • Resolution set to fixed
  • Status changed from new to closed

(In [4840]) boulder-oracle-sprint: Fixed #3835 by making CursorDebugWrapper
iterable, as it should have been.

comment:2 Changed 8 years ago by bouldersprinters

(In [4843]) boulder-oracle-sprint: Fixed #3820. See #3835 too, as this is a more
correct fix for the same issue (CursorDebugWrapper not iterable).

Note: See TracTickets for help on using tickets.
Back to Top