Hi

I just updated my web2py from 1.99.4 to 1.99.7 and a select to my db 
stopped working.
The field is a SQLCustomType that has native type "string" and type 
"list:integer", this worked fine before but now it doesn't decode the value.

BaseAdapter parse_value in dal.py

if isinstance(value, unicode):
     value = value.encode('utf-8')
elif isinstance(field_type, SQLCustomType):
     value = field_type.decoder(value)

the value is unicode and so the decoder will not run.

I need a conversion from string to list:integer because of the legacy 
database I'm working with, can this be fixed or is there another 
alternative to SQLCustomType?

Reply via email to