Re: [PyIndexer] Notes on Docs and Testing
Status: Pre-Alpha
Brought to you by:
cduncan
From: Marcus C. <ma...@wr...> - 2001-12-10 14:22:34
|
On Mon, 10 Dec 2001 at 12:37:11 +0000, Chris Withers wrote: > Marcus Collins wrote: > > > > probably most DBMS)? The database server returns the float as a string, > > the database API converts it back to a float, > > It does? why? that sucks :-S The MySQL C API returns rows as an array of strings. See the typedefs and prototypes in mysql.h... I don't know the dark magic, but AFAIK in MySQLdb there's a 'converters' module (which you can override) which examines the column type reported by the API and converts the string output to native Python objects. [ snip sample data ] Cheers -- Marcus |