Friday, November 1, 2013

psycopg2._psycopg.cursor missing cursor.fetchnone/cursor.fetchall

Hi all.

I am trying to use django.db.connection with psycog2 (postgres). I can run something like cursor=connection.cursor(); cursor.execute("SELECT * FROM app_mymodel") … but it looks like psyog2 is missing cursor.fetchnone/cursor.fetchall. A bit surprised on this as it is documented clearly in the Django Docs. Any ideas about what's up? https://docs.djangoproject.com/en/1.5/topics/db/sql/#connections-and-cursors

Thanks!

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/3fb905d1-bc80-4c10-adea-1d7b846462a6%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment