Open irohitb opened 1 year ago
I have this code
token_value := jsonb_build_object( 'token', token, 'workspace_name', workspace_name, 'user', user_email ); INSERT INTO services_connected (workspace_id, service_name, data) VALUES (workspace_id_value, 'google', token_value) ON CONFLICT (workspace_id, service_name) DO UPDATE SET data = EXCLUDED.data;
this works fine but ON CONFLICT, the value stored is incorrect.
ON CONFLICT
I have this code
this works fine but
ON CONFLICT
, the value stored is incorrect.