diff --git a/route_sql/swap_post.sql b/route_sql/swap_post.sql index 518d69f..13bdc43 100644 --- a/route_sql/swap_post.sql +++ b/route_sql/swap_post.sql @@ -6,6 +6,8 @@ target AS (SELECT $$swap_doc$$::jsonb swap) FROM TARGET LEFT JOIN LATERAL jsonb_to_recordset(target.swap->'rows') AS x(original text, sales numeric, replace text, fit text)ON TRUE + WHERE + COALESCE(x.replace,'') <> '' ) --select * from pl ,seg AS (