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

44 views
Skip to first unread message

hjr1

unread,
Nov 1, 2013, 3:46:17 AM11/1/13
to django...@googlegroups.com

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!

Vernon D. Cole

unread,
Nov 2, 2013, 9:29:09 AM11/2/13
to django...@googlegroups.com

One problem you are having is a typographical error:  The cursor method is "Fetch One" not "Fetch None".
Reply all
Reply to author
Forward
0 new messages