MySQLdb where's fetchoneDict()?

Gabriel Ambuehl gabriel_ambuehl at buz.ch
Sun Sep 30 04:39:25 EDT 2001


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

Hello,
I wonder whether there's a fetchoneDict() equivalent to
fetchallDict()
in version 0.9 in case one wants to fetch only one row and thus don't
want to have the data in a a list of dictionaries. (The reason I
don't
just want to use fetchone() is that I've got tables with some 20
fields and it's rather hard to handle that many fields in a tuple
when
you have only numerical indexes in order to access them...).

cursors.py says I should use fetchone() instead as fetchoneDict() is
deprecated for some reason not noted there. Ooh I just noticed that v
0.9
says that for all the fetch*Dict() calls, does that mean I've got to
rewrite all code that was written using fetch*Dict() based on v0.3.5?




Best regards,
 Gabriel
.

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

iQEVAwUBO7bMMcZa2WpymlDxAQGO+AgAuglEtuIqW2UotdTg4JRnwSb0KPGYkbLC
SD+7bgiHvQrx8o/jCNdLfDAZBNLSRRYN5AgH8Wok5xyx6M244dnssyfLTbNew5Y7
AhymytwqQTJaBgkTNl5xWFY8pZGUTlF8fn55M7V05JSVVJBeq3TyzxvmvR+OGqbz
lWP5nw5Qo36m4qf9WNsfiQ98Y8U9+Uw3X1WNNZvqPAyuVL9nv/P145pKO02oD5jD
5SxkZTP3tKZ0c1y7kpaf7x5dMbD8MbbSztesjMD9s7yt/G4EBfcITHKJ+2fAox8X
vGmdeZpfLRmb/zV4c3ZYQV4b/U7OmMSVLxZ7863UfVrdT18JlT0wjA==
=tzFi
-----END PGP SIGNATURE-----





More information about the Python-list mailing list