I have a controller with
r = db(db.mytable.PostDate is not None)
streetval = r.count()
which yields a ticket with
<class 'sqlite3.OperationalError'>(near "WHERE": syntax error)[...]Function
argument list
(self=<pydal.adapters.sqlite.SQLiteAdapter object>, *a=('SELECT count(*) FROM
WHERE 1;',), **b={})
Variables
a ('SELECT count(*) FROM WHERE 1;',)b {}self
<pydal.adapters.sqlite.SQLiteAdapter object>ret undefinedcommand 'SELECT
count(*) FROM WHERE 1;'self.get_cursor <bound method SQLiteAdapter.get_cursor
of <pydal.adapters.sqlite.SQLiteAdapter object>>).execute undefined
What did I do wrong?
/dps
--
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 [email protected].
For more options, visit https://groups.google.com/d/optout.