From 78a9658e8028a75c7855448a0fa05065451e2fab Mon Sep 17 00:00:00 2001 From: Paul Trowbridge Date: Fri, 23 Apr 2021 09:41:38 -0400 Subject: [PATCH] need to include director comparison to hook for changes --- build/snap_cust_pool.sql | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/build/snap_cust_pool.sql b/build/snap_cust_pool.sql index 106fc6a..fcfa67a 100644 --- a/build/snap_cust_pool.sql +++ b/build/snap_cust_pool.sql @@ -55,6 +55,8 @@ FROM rlarp.repc r WHERE r.rcode = o.dsm - AND quota_rep_descr <> (regexp_match(r.repp,'.* - (.*)$'))[1]; - + AND ( + quota_rep_descr <> (regexp_match(r.repp,'.* - (.*)$'))[1] + OR o.director <> r.director + ); COMMIT;