Yeah I saw that when I submitted the post however when I do: db.image.title like( 'smile%') or db.image.title like 'smile%' it still says invalid query...
On 2 aug, 18:38, Álvaro Justen [Turicas] <[email protected]> wrote: > On Sun, Aug 2, 2009 at 13:23, Pynthon<[email protected]> wrote: > > > Hello > > > I'm following along with your book, great resource! However, when I do > > this (on page: 58 in the PDF version that I bought on 2009-04-24!) > > db.image.id LIKE 'me%' it says "Invalid query'. But what's wrong with > > it? > > > Thanks again! > > Can you post your code here? > It should be: db.image.id.like('me%') - but it doesn't make sense: > 'id' is always an integer field and you are using 'like' to compare it > with a string. > So, what you really want? > > -- > Álvaro Justen > Peta5 - Telecomunicações e Software Livre > 21 3021-6001 / 9898-0141 > http://www.peta5.com.br/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---

