As a response to myself, with a date field, db((db.auth_user.end_date == end)).select() is working. I nonetheless would appreciate to know what is the expected status of the former query with datetime field on GAE.
-Mathieu. On Sun, Dec 13, 2015 at 3:58 PM Mathieu Clabaut <math...@clabaut.net> wrote: > Hello, > > the doc says that GAE does not support complex datetime query… > Could someone tell me if the following is expected to fail (where > end_date is a datetime): > > db((db.auth_user.end_date.year() == end.year) & > (db.auth_user.end_date.month() == end.month) & > (db.auth_user.end_date.day() == end.day)).select() > > Would it works with a date field : > > db((db.auth_user.end_date == end.year)).select() > > Where is the complexity limit on what is expected to work and what is > expected to not work. > > Note that in the first case, I got an exception : > … > File "/web2py/gluon/packages/dal/pydal/adapters/google_adapters.py", line > 286, in gaef name = first.name if first.name != 'id' else 'key' > AttributeError: 'Expression' object has no attribute 'name' > > Thank you for any tip… > > -Mathieu > > > > -- 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.