From 036f2b86fb4a66b8a2b798758bd34704320386ec Mon Sep 17 00:00:00 2001 From: barrfalk Date: Fri, 20 Sep 2024 12:04:36 -0700 Subject: [PATCH] Update R__update-insert-complaint-from-staging.sql --- .../migrations/R__update-insert-complaint-from-staging.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/migrations/migrations/R__update-insert-complaint-from-staging.sql b/migrations/migrations/R__update-insert-complaint-from-staging.sql index 7dd2d2d43..0b4e8f389 100644 --- a/migrations/migrations/R__update-insert-complaint-from-staging.sql +++ b/migrations/migrations/R__update-insert-complaint-from-staging.sql @@ -152,7 +152,7 @@ OR REPLACE FUNCTION public.insert_complaint_from_staging (_complaint_identifier _webeoc_cos_area_community := complaint_data ->> 'cos_area_community'; _webeoc_cos_reffered_by_lst := complaint_data ->> 'cos_reffered_by_lst'; _cos_reffered_by_txt := left(complaint_data ->> '_cos_reffered_by_txt',120); - _webeoc_identifier := complaint_data ->> 'webeoc_identifier'; + SELECT * FROM PUBLIC.insert_and_return_code( _webeoc_cos_reffered_by_lst, 'reprtdbycd' ) INTO _cos_reffered_by_lst;