On Thursday 14 February 2008 08:27:23 Oleg Broytmann wrote: > Does SQLObject really needs to quantize user's decimals? Why not just > pass them to the backend as is?
Well, the most important thing is to get DecimalCol() actually returning decimals... I wouldn't want to lose focus of the easiest & most important goal. But on top of that, failing to quantize the data introduces inconsistencies. The precision is an important and fundamental characteristic of a Decimal. If I define a DecimalCol as size=10, precision=5, then when I fetch that attribute from the database, I really don't want it to have size=20, precision=2. I think the class definition should be enforced for each instance. Otherwise, why bother having these parameters if they are meaningless? Don't we want to be able to use SQLObject to write database-agnostic code? If every other DB engine offers strict guarantees about size/precision, shouldn't sqlobject do the same? cs ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ sqlobject-discuss mailing list sqlobject-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss