From: Oleg B. <ph...@ph...> - 2008-02-14 16:31:17
|
On Thu, Feb 14, 2008 at 05:59:23PM +0300, Oleg Broytmann wrote: > we are making a workaround for the backend that doesn't have a decimal > type. But the workaround has a price. Well, my resolution on the issue is: DecimalCol will not be changed. I will add documentation explaining the type affinity problem in SQLite. There will be a new DecimalStringCol that stores Decimals as text. If you want quantization please write a validator class, and I will include it into SQLObject. Initially it will be off, but a user can easily use it - every column has a "validator" keyword argument. With all these changes a user is free to choose an implementation and its price - DecimalCol or DecimalStringCol, or DecimalCol+quantization, or DecimalStringCol+quantization. Oleg. -- Oleg Broytmann http://phd.pp.ru/ ph...@ph... Programmers don't die, they just GOSUB without RETURN. |