From d124776c4e8dc9d07d93a56d7b8834edaabef03d Mon Sep 17 00:00:00 2001 From: Andy Eschbacher Date: Tue, 23 Jun 2015 18:49:59 -0400 Subject: [PATCH] simplified assignment --- scripts-available/CDB_DistinctMeasure.sql | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/scripts-available/CDB_DistinctMeasure.sql b/scripts-available/CDB_DistinctMeasure.sql index b5f2cce..228a0c7 100644 --- a/scripts-available/CDB_DistinctMeasure.sql +++ b/scripts-available/CDB_DistinctMeasure.sql @@ -36,10 +36,8 @@ BEGIN INTO maxval USING element_count, in_array; - passes = CASE WHEN maxval >= threshold - THEN TRUE - ELSE FALSE - END; + passes = (maxval >= threshold); + RETURN passes; END; $$ language plpgsql IMMUTABLE;