Re: 2.0.10 crash in fetchone() in a DictCursor
Federico Di Gregorio <fog-NGVKUo/i/[email protected]>
| Newsgroups | gmane.comp.python.db.psycopg.devel |
|---|---|
| Organization | initd.org |
| Message-ID | <1241873744.4252.0.camel@erin> |
Il giorno gio, 23/04/2009 alle 18.14 -0600, Nathan ha scritto: > > File "//usr/lib/python2.4/site-packages/psycopg2/extras.py", line > > 200, in __setitem__ > > name = self._column_mapping[name] > > IndexError: list index out of range > > > > > > Here's how I created the cursor: > > > > curs = db.cursor(cursor_factory = psycopg2.extras.RealDictCursor) > > > > What can I do to debug this? That was an error in the C part of the module. After fixing it the exception made much more sense. The fix will be in 2.0.11 already available from git master branch. Have fun, federico -- Federico Di Gregorio http://people.initd.org/fog DISCLAIMER. If I receive a message from you, you are agreeing that: 1. I am by definition, "the intended recipient". 2. All information in the email is mine to do with as I see fit and make such financial profit, political mileage, or good joke as it lends itself to. In particular, I may quote it on USENET or the WWW. 3. I may take the contents as representing the views of your company. 4. This overrides any disclaimer or statement of confidentiality that may be included on your message. _______________________________________________ Psycopg mailing list Psycopg-IAPFreCvJWPBWskQ1e/[email protected] http://lists.initd.org/mailman/listinfo/psycopg
signature.asc
(application/pgp-signature, 197 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEABECAAYFAkoFfVAACgkQvcCgrgZGjes9DQCaAvMcJef5RXTqzYHGsLRRfVoY b20AnRK7WHX+lh286uoVpZefnhEcYxvS =ZmAK -----END PGP SIGNATURE-----