On Apr 27, 2:36 pm, Tim Sawyer <list.dja...@calidris.co.uk> wrote:
> Hmm, nearly.  That gets around the error, but the return value isn't
> populated.
>
>  >>> import cx_Oracle
>  >>> from django.db import connection
>  >>> cursor = connection.cursor()
>  >>> lOutput = cursor.var(cx_Oracle.STRING)
>  >>> cursor.execute("BEGIN %s := 'N'; END; ", [lOutput])
>  >>> print lOutput
> <cx_Oracle.STRING with value None>
>  >>> print lOutput.getvalue()
> None
>  >>>
>
> Any more clues, or am I just going to have to stick with creating a
> specific Oracle connection to do this?

That would be a bug.  I've just checked in a fix, which will be
included in Django 1.2 and the next 1.1.X release.  If you're not
willing to use trunk or wait for the release, my recommendation would
be to use cursor.callfunc if possible.  Otherwise, you can get the
cx_Oracle cursor from cursor.cursor and use that directly.

Ian

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to