By using the underscore in front of select, you can see the SQL. That is often the best way to see what's going on...
e.g. db(db.prod.id<0)._select() On Mar 13, 12:37 am, "Adnan S." <[email protected]> wrote: > Thanks Vasile! I'm making baby steps here :) > > On Mar 12, 5:15 pm, Vasile Ermicioi <[email protected]> wrote: > > > 1==0 is a boolean not a query, > > > empty_result = db(db.prod.id<0).select() # I suppose that you don't have > > negative ids :) > >

