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

2011-12-08 Thread Daniel Blomqvist
Thanks for your help Massimo Although now I'm getting this error: File"/home/daniel/dev/tempw2p/web2py/gluon/dal.py",line5496,instartswith return self.type.startswith(self,text) TypeError:slice indices must be integersor None orhave an __index__ method On 2011-12-08 15:36, Massimo Di Pierr

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

2011-12-08 Thread Massimo Di Pierro
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:integer' and native > 'int(