Not sure what's going on. You'll have to do some digging around. Maybe do a dir(db._adapter) to see what the object is.
Anthony On Tuesday, December 20, 2016 at 4:03:27 PM UTC-5, Jurgis Pralgauskis wrote: > > it just has what standar app gets: > > db = DAL(myconf.get('db.uri'), > pool_size=myconf.get('db.pool_size'), > migrate_enabled=myconf.get('db.migrate'), > check_reserved=['all']) > > @appconfig.ini > > [db] > uri = sqlite://storage.sqlite > > > On Tue, Dec 20, 2016 at 4:42 PM, Anthony wrote: > >> How have you defined db? The _adapter attribute of a DAL instance should >> be a "SQLiteAdapter" object when using SQLite, not a "SQLite" object. >> >> Anthony >> >> >> On Tuesday, December 20, 2016 at 5:00:02 AM UTC-5, Jurgis Pralgauskis >> wrote: >>> >>> I have searchform, >>> >>> where one can define various fields and mapping to expressions for >>> comparison, >>> and it automatically constructs select query, >>> >>> but if I want to check if expression is aggregate, and direct thesese >>> queries to "having" >>> >>> but if I try >>> >>> if filter.target_expression.op == db._adapter.AGGREGATE: >>> >>> I get >>> >>> AttributeError: 'SQLite' object has no attribute 'AGGREGATE' >>> >>> >>> >>> >>> -- >> 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 a topic in the >> Google Groups "web2py-users" group. >> To unsubscribe from this topic, visit >> https://groups.google.com/d/topic/web2py/0IvASrrIDkA/unsubscribe. >> To unsubscribe from this group and all its topics, send an email to >> web2py+unsubscr...@googlegroups.com. >> For more options, visit https://groups.google.com/d/optout. >> > > > > -- > Jurgis Pralgauskis > tel: 8-616 77613; > Don't worry, be happy and make things better ;) > http://galvosukykla.lt > -- 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.