Project

General

Profile

« Previous | Next » 

Revision 13852

bugfix: inputs/.TNRS/schema.sql: taxon_name_is_safe(): need to use `NOT (_ = ANY()) instead of ` != ANY`, because the != operator is applied to each element

View differences:

schema.sql
99 99
CREATE FUNCTION taxon_name_is_safe(taxon_name text) RETURNS boolean
100 100
    LANGUAGE sql IMMUTABLE
101 101
    AS $_$
102
SELECT $1 != ANY("TNRS".unsafe_taxon_names())
102
SELECT NOT ($1 = ANY("TNRS".unsafe_taxon_names()))
103 103
$_$;
104 104

  
105 105

  

Also available in: Unified diff