alfonsodg / demo-web2py

Apache License 2.0
0 stars 0 forks source link

update_record doesn't cast update values #198

Closed alfonsodg closed 10 years ago

alfonsodg commented 10 years ago

From hosoda%s...@gtempaccount.com on February 21, 2011 20:32:14

What is the expected output? What do you see instead? The following is a doc-test using update_record method, where I expect the string value '3' to be converted to the integer value 3.

table = db.define_table('xxx', Field('val', 'integer')) id = table.insert(val='1') record = table(id) type(record .val) <type 'int'> record.update_record(val='3') type(record.val) <type 'int'> Expected: <type 'int'> Got: <type 'str'> What version of the product are you using? On what operating system? 1.92.1

Original issue: http://code.google.com/p/web2py/issues/detail?id=200

alfonsodg commented 10 years ago

From massimo....@gmail.com on March 01, 2011 09:32:14

Status: Accepted

alfonsodg commented 10 years ago

From massimo....@gmail.com on November 03, 2011 11:20:34

This would be time consuming and it is very rarely used.

Status: WontFix