Re: Using different types in PyDO2
Jacob Smullyan <[email protected]> Mon, 23 May 2005 10:49:27 -0400
| Newsgroups | gmane.comp.web.skunkweb |
|---|---|
| Message-ID | <[email protected]> |
On Mon, May 23, 2005 at 01:52:45PM +0200, Stefan Neumann wrote: > Hi. > > I am using only PyDO2 in my project, but I have a problem with it. Every > single data, I get out of the mysql db only strings, also cloumns are > defined in the database as an integer. > > So what I am doing wrong or how can achieve to convert a stored 1(int) > to True? I'm sorry your data is getting mangled. What versions of mysql and MySQLdb are you using? Most of the type conversions are done in the MySQLdb driver itself. So if you are getting back a string where you expect an integer, then you would presumably be getting the same thing using MySQLdb directly. Is that so? j > Best regards Stefan > ------------------------------------------------------- This SF.Net > email is sponsored by Oracle Space Sweepstakes Want to be the first > software developer in space? Enter now for the Oracle Space > Sweepstakes! > http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click > _______________________________________________ Skunkweb-list > mailing list [email protected] > https://lists.sourceforge.net/lists/listinfo/skunkweb-list -- Jacob Smullyan
signature.asc
(application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFCke13uqamFyFXXLIRAiQmAJ4lYVe5qJ3zLuUO2W4hr+/p03rvZgCeNV6U RFlW2TdPLzPc4PWu76N6YQ4= =Ucbp -----END PGP SIGNATURE-----