Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

RealDictCursor doesn't work with named cursors

#67

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

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

State: resolved
Milestone: none
Assigned to: nobody

Activity

  1. Daniele Varrazzo
    Daniele Varrazzo
    • State changed from new to resolved

    Fixed in my devel. To be released in 2.4.3.

    September 12th, 2011 @ 01:15 AM