I understand and it is a bug. Could you please open a ticket about this? On Saturday, 12 October 2013 09:27:45 UTC-5, Adi wrote: > > Thanks Massimo. I'm talking about the automatic search query above > smartgrid that gets created when boolean field is selected as a filter. It > gets created as table.field = "on". So that one works, but != "on" doesn't > seem to work. > On 2013-10-11 11:25 PM, "Massimo Di Pierro" > <massimo....@gmail.com<javascript:>> > wrote: > >> there are the only valid queries involving a boolean: >> >> table.field == True >> table.field == False >> table.field == None >> table.field != True >> table.field != False >> table.field != None >> >> >> On Friday, 11 October 2013 21:19:52 UTC-5, Adi wrote: >>> >>> Search: >>> table.field = "on" (shows rows with "T") >>> table.field != "on" (no rows, even though there are some "F"'s) >>> >>> 2.7.3-stable+timestamp.2013.**10.11.19.30.17, MySQL, field defined as >>> boolean, char(1) >>> >>> I think this worked, but haven't used it in some time. >>> >> -- >> Resources: >> - http://web2py.com >> - http://web2py.com/book (Documentation) >> - http://github.com/web2py/web2py (Source code) >> - https://code.google.com/p/web2py/issues/list (Report Issues) >> --- >> You received this message because you are subscribed to the Google Groups >> "web2py-users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to web2py+un...@googlegroups.com <javascript:>. >> For more options, visit https://groups.google.com/groups/opt_out. >> >
-- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.