MySQLdb where's fetchoneDict()?

Gabriel Ambuehl gabriel_ambuehl at buz.ch
Sun Sep 30 10:20:27 EDT 2001


-----BEGIN PGP SIGNED MESSAGE-----

Hello Skip,

Sunday, September 30, 2001, 3:50:01 PM, you wrote:


> When you create the database connection you can specify the type of
> cursor to use by passing a cursorclass parameter, e.g.:

>     self.db = MySQLdb.Connection(host=self.host,
>                                  user=self.user,
>                                  passwd=self.password,
>                                  db=self.database,
>                                 
> cursorclass=MySQLdb.cursors.DictCursorNW)  

> Try pydoc.help(MySQLdb.cursors) for all the possibilities...



Oops. I thought the fact that DictCursor is a completely empty class
except for the MixIns (which don't do much either) would mean
DictCursor is gone. (I know found that some of the old code
supposedly
run with a hacked MySQLdb which didn't made it necessary to specify
DictCursor in order to use its features).

Thanks a lot!



Best regards,
 Gabriel

-----BEGIN PGP SIGNATURE-----
Version: PGP 6.5i

iQEVAwUBO7ccH8Za2WpymlDxAQHIlggAvkp+n5HgL6tfXbld3sZ3/VuX0i+pfa/E
59pCb+j52IRNALumFEuLDThPruPoKSTsWPZU5ElfIiMrR6QD+vPNc7aSgrw4TPom
s2APwGcFck+GTysJv+XFQkNDvQS4fNG38osYs0ezJ+L4e2iAtdaZot7i9an1i1g2
WGAXTqBCrFfS5nhFbdjIIcnlUTXxIR6jZzenS5VMduX+6+DvkeRroraPmjoyZzhT
UJxgtSE1s9m2vVMdL77cD1+3KaO1DF4cqEvwcLfGygCuNdBDpmpW6hKoF3qHHUCo
8pV2rHmoqFDzzA9bnR9Fp1C3OaRH6v9liHHsIK9nRQ+qDsHK+IK+WQ==
=9yN5
-----END PGP SIGNATURE-----





More information about the Python-list mailing list