Saturday, November 2, 2013

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


One problem you are having is a typographical error:  The cursor method is "Fetch One" not "Fetch None".
 
On Friday, November 1, 2013 8:46:17 AM UTC+1, hjr1 wrote:

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/0682c17d-3ff6-4ac3-857b-b146b7faf763%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment