Re: Bug in pydo.base.PyDO._update_raw?
Jacob Smullyan <[email protected]> Tue, 31 May 2005 14:43:58 -0400
| Newsgroups | gmane.comp.web.skunkweb |
|---|---|
| Message-ID | <[email protected]> |
On Tue, May 31, 2005 at 07:10:53PM +0100, Hamish Lawson wrote: > pydo.base.PyDO._update_raw contains the following code: > > values=converter.values > where, wvals=self._uniqueWhere(conn, self) > values+=wvals > > Are values and wvals meant to be dictionaries? In which case, += is not > defined for those operands. You are right, converter.values can be a dictionary if the paramstyle is 'named' or 'pyformat'; otherwise, it will be a list. Since the drivers we have so far don't used 'named' or 'pyformat', this hasn't been a problem so far. This needs a careful fix, because at the moment two converters are being used, and they would end up generating the same interpolation names for the named/pyformat styles, and the bind variables would end up clobbering each other. I'm making it so that only one converter instance is used, and will check in the fix shortly. Thanks, j -- Jacob Smullyan
signature.asc
(application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFCnLBuuqamFyFXXLIRAsDVAJ4/7CPicn8k0k//JDmPSSTo1a6LgQCffM3v RxyUjr6Qhl8jgnX8hhpHYTg= =cSAp -----END PGP SIGNATURE-----