This project is archived and is in readonly mode.

#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)

229 
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
 80

/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)
250

IndexError: list index out of range

Comments and changes to this ticket

Create your profile

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

<b>WARNING:</b> the informations in this tracker are archived. Please submit new tickets or comments to <a href="https://github.com/psycopg/psycopg2/issues">the new tracker</a>.
<br/>
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

Tags

Pages