db(db.countries.id > 0).count()

On Wednesday, April 10, 2013 9:29:36 AM UTC-4, Domagoj Kovač wrote:
>
> Hi,
>
> i have this line of code:
>
> number_of_records = db().count(db.countries.id)
>
> i am receiving an error:
> <class 'sqlite3.OperationalError'> near ";": syntax error
> (self=<gluon.dal.SQLiteAdapter object>, *a=('SELECT count(DISTINCT 
> countries.id) FROM ;',), **b={})
>
> What is wrong?
>

-- 

--- 
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.


Reply via email to