Re: [web2py] Re: .contains() in query with SQLCustomType

2011-12-08 Thread Daniel Blomqvist
:36, Massimo Di Pierro wrote: Good point. I have a possible fix to trunk, please check if it resolves the problem. On Dec 8, 8:11 am, Daniel Blomqvist wrote: Hello, I tried making a query like this: db(db.table.field.contains(1)).select() where the field is a SQLCustomType with type 'list

[web2py] .contains() in query with SQLCustomType

2011-12-08 Thread Daniel Blomqvist
Hello, I tried making a query like this: db(db.table.field.contains(1)).select() where the field is a SQLCustomType with type 'list:integer' and native 'int(11)' The query does not work because of this function in gluon.dal.SQLCustomType: def startswith(self, dummy=None): return Fals