From: Carlos R. <car...@gm...> - 2004-12-07 03:35:32
|
On Mon, 06 Dec 2004 11:06:33 -0600, Ian Bicking <ia...@co...> wrote: > It depends what backends you are targetting. If Postgres/psycopg, you > should be able to modify its type coercion fairly easily. For other > database drivers, I'm not sure. There's no standard DB API way to > manage type conversion, but I imagine there are interested people in > each case, and workaround solutions. This seems like the easiest > course, and the end result (getting drivers to return decimal types > natively) will benefit everyone. If I only could find a way to do it in SQLObject without having to resort to database driver patching, that would be perfect :-) But unfortunately, things are not that easy, unless I store all my money values in text columns - but then I'll lose big on SQL aggregation functions & stuff like that. But I'm really tempted to do it, just to avoid messing with db drivers for now. -- Carlos Ribeiro Consultoria em Projetos blog: http://rascunhosrotos.blogspot.com blog: http://pythonnotes.blogspot.com mail: car...@gm... mail: car...@ya... |