Migrate sqlite database to Postgres database

13 views
Skip to first unread message

José Manuel Pérez Morales

unread,
Jan 16, 2020, 9:57:44 AM1/16/20
to web2py-usuarios
I need to migrate from a Sqlite database to a posgrest database. But when I do it, I get the following error, which I didn't do when I was running with sqlite 
<class 'psycopg2.ProgrammingError'> column "ent.id" must appear in the GROUP BY clause or be used in an aggregate function LINE 1: ... d_on "," prov "." Created_by "," prov "." Modified_by "," ent "." Id "... ^
This error was produced by following consult to the dabtabase 

prov=db(db.ent.prov==db.prov.id).select(groupby=db.prov.id)

please some body help me

Reply all
Reply to author
Forward
0 new messages