DNS Mismatch report incorrectly trimmed domain_suffix

This commit is contained in:
Oliver Gorwits
2014-07-21 21:07:47 +00:00
parent bc2ef8fc5a
commit 24a19f5cf8
2 changed files with 9 additions and 4 deletions

View File

@@ -17,9 +17,8 @@ SELECT *
FROM device
WHERE dns IS NULL
OR name IS NULL
OR lower(trim(TRAILING ?
FROM dns)::text) != lower(trim(TRAILING ?
FROM name)::text)
OR regexp_replace(lower(dns), ? || '$', '')
!= regexp_replace(lower(name), ? || '$', '')
ENDSQL
1;