I believe the DAL now always double quotes table and field names when constructing queries, so I'm not sure you even need to use check_reserved anymore. What happens if you simply remove it?
Anthony On Tuesday, July 24, 2018 at 4:39:05 PM UTC-4, pbreit wrote: > > Apparently if you are going to use "rname" you may need to surround the > column name with single and double quotes which will send the double-quotes > to the DB: > > Field('state', rname='"state"') > > As an aside, it always seemed to me that a DB access library would be able > to be structured in such a way that reserved words would be a non-issue. > There are quite a few words on the list that I would like to use (ie, > state, group). > -- 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/d/optout.