[web2py] Re: A bug or am I doing something wrong

2011-01-15 Thread Massimo Di Pierro
This is not the right syntax for decimal. Should be Field('f_total_sum_all', type='decimal(5,10)', label=T('Total Sum')), decimal(precision,scale) same syntax as SQL. On 26 joulu 2010, 23:16, Kenneth Lundström wrote: > Aapche 2, wsgi, MySQL 5.0, web2py 1.91.4, python 2.6.5 > > I have defined in

[web2py] Re: A bug or am I doing something wrong

2010-12-27 Thread Kenneth Lundström
Any thoughts about this one? Kenneth Aapche 2, wsgi, MySQL 5.0, web2py 1.91.4, python 2.6.5 I have defined in my model: Field('f_total_sum_all', type='decimal', label=T('Total Sum')), Even float gives the same error. Only integer works. Version web2py™ Version 1.91.4 (2010-12-22 17:31:23)