sorry for disturb - I'm lazy to create a new topic - another bug in Oracle Back-End is about using queryset.only() - there are wrong value/ field indexing
seems to be Oracle is not a Django (or an Open Source) favorite environment can I somewhere found another similar Oracle Back-End issues? Google is my friend, but not in connection with Oracle because of a billion of Oracle advertisement spams :-( On Apr 29, 9:25 pm, Tim Sawyer <list.dja...@calidris.co.uk> wrote: > Excellent, I'll give trunk a go. Thanks Ian. > > Tim. > > > > Ian wrote: > > 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 > athttp://groups.google.com/group/django-users?hl=en. -- 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.