You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When starting the query plpyodk.odk_central_to_pg, I got an error because of field value with double quotes :
ERROR: Token "berger" is invalid.syntaxe en entrée invalide pour le type json
ERREUR: syntaxe en entrée invalide pour le type json
SQL state: 22P02
Detail: Token "berger" is invalid.
Context: données JSON, ligne 1 : ...nger le brame du cerf. Recommande de lire "berger...
instruction SQL « DROP TABLE IF EXISTS odk_central.form;
CREATE TABLE IF NOT EXISTS odk_central.form AS
SELECT key as tablename, (json_array_elements(value)) as json_data
FROM json_each(plpyodk.get_complete_submissions_with_filter('project_id'::text, 'form'::text,''::text)::json)
»
fonction PL/pgSQL plpyodk.odk_central_to_pg(integer,text,text,text,text), ligne 3 à EXECUTE
Activity
JulesGrillot commentedon Aug 26, 2025
This is the modifications I made to
get_complete_submissions_with_filter.sqlto replace the double quotes :I added a function at the beginning of the file :
And change this line with this code :
Full code :
I used this stackoverflow answer to help me make the function.