>From web2py from trunk I have this code. In older version has no problem with 
>this. This stop instant press working with the last version.

==============BEGIN CODE ==========================
db.define_table('problematic',
                Field('id', 'id'),
                Field('myfield','string',default=""),
                Field('myfield2','string',default="")
                )
problematic = db(db.problematic.id>0).select()  
if not problematic:
    someid = db.problematic.insert(myfield="")

lastinserted = db(db.problematic.id>0).select()[0]
print lastinserted.myfield
print lastinserted.myfield2
==============END CODE ==========================

the second print return None when have to return "".

http://code.google.com/p/web2py/issues/detail?id=137

Reply via email to