﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
3820	DebugCursorWrapper not working on Oracle	Ben Khoo <benk@…>	Jacob	"Hello,

I believe there may be an issue with the latest update to the boulder-oracle-sprint branch. A change was made on the 23rd of March so that a {{{DebugCursorWrapper}}} is returned if {{{DEBUG == True}}}. (Refer to the SVN log of /django/branches/boulder-oracle-sprint/django/db/oracle/base.py for the message).

The exhibits itself in /django/branches/boulder-oracle-sprint/django/db/oracle/base.py line 288 which reads:
{{{
for unresolved_row in cursor:
}}}
If {{{DEBUG == True}}} the cursor is a {{{DebugCursorWrapper}}} and is not iterable. Instead I believe that it should read something like the following:
{{{
for unresolved_row in cursor.fetchall():
}}}

Similarly in the file /django/branches/boulder-oracle-sprint/django/db/oracle/introspection.py on line 9, it reads:
{{{
return [row[0].upper() for row in cursor]
}}}
when I believe it should read
{{{
return [row[0].upper() for row in cursor.fetchall()]
}}}

Regards"		closed	Uncategorized	other branch		fixed	Oracle DebugCursorWrapper fetchall		Unreviewed	1	0	0	0	0	0
