#67 ✓ resolved
Psycopg website

RealDictCursor doesn't work with named cursors

Reported by Psycopg website | August 25th, 2011 @ 05:18 PM

Submitted by: justin.vanwinkle@gmail.com

IndexError Traceback (most recent call last)
/home/jvanwink/repos/milosolr/loader/<ipython-input-83-e90934fd1f1e> in () ----> 1 res = ps.update_range(0, 100)

/home/jvanwink/repos/milosolr/loader/loader.py in update_range(self, min_id, max_id)

230         while True:

--> 231 rows = cur.fetchmany(500)

232             if not rows:
233                 break

/usr/lib/python2.6/dist-packages/psycopg2/extras.py in fetchmany(self, size)

 76             self._build_index()
 77         if not self._prefetch:

---> 78 res = _cursor.fetchmany(self, size)

 79         return res

/usr/lib/python2.6/dist-packages/psycopg2/extras.py in setitem(self, name, value)

246         if type(name) == int:
247             print self._column_mapping

--> 248 name = self._column_mapping[name]

249         return dict.__setitem__(self, name, value)

IndexError: list index out of range

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Psycopg is the most used PostgreSQL adapter for the Python programming language. At the core it fully implements the Python DB API 2.0 specifications. Several extensions allow access to many of the features offered by PostgreSQL.

Shared Ticket Bins