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
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.
Original issue: http://code.google.com/p/web2py/issues/detail?id=200