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

@@ -1,4 +1,10 @@
2.028006 2.028006 - 2014-07-21
[BUG FIXES]
* DNS Mismatch report incorrectly trimmed domain_suffix
2.028006 - 2014-07-21
[ENHANCEMENTS] [ENHANCEMENTS]

View File

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