Project

General

Profile

« Previous | Next » 

Revision 11826

schemas/vegbien.sql: removed unused function _taxonlabel_set_matched_label_id(), which refers to obsolete fields

View differences:

schemas/vegbien.my.sql
299 299

  
300 300

  
301 301
--
302
-- Name: _taxonlabel_set_matched_label_id(int(11), int(11), double precision); Type: FUNCTION; Schema: public; Owner: -
303
--
304

  
305

  
306

  
307

  
308
--
309 302
-- Name: _taxonlabel_set_parent_id(int(11), int(11)); Type: FUNCTION; Schema: public; Owner: -
310 303
--
311 304

  
schemas/vegbien.sql
622 622

  
623 623

  
624 624
--
625
-- Name: _taxonlabel_set_matched_label_id(integer, integer, double precision); Type: FUNCTION; Schema: public; Owner: -
626
--
627

  
628
CREATE FUNCTION _taxonlabel_set_matched_label_id(taxonlabel_id integer, matched_label_id integer, matched_label_fit_fraction double precision DEFAULT NULL::double precision) RETURNS integer
629
    LANGUAGE plpgsql
630
    AS $$
631
BEGIN
632
    -- Use EXECUTE to avoid caching query plan
633
    EXECUTE '
634
    UPDATE taxonlabel SET
635
      matched_label_id = '||quote_nullable(matched_label_id)||'
636
    , matched_label_fit_fraction = '
637
        ||quote_nullable(matched_label_fit_fraction)||'
638
    WHERE taxonlabel_id = '||quote_nullable(taxonlabel_id)||'
639
    ';
640
    
641
    RETURN taxonlabel_id;
642
END;
643
$$;
644

  
645

  
646
--
647 625
-- Name: _taxonlabel_set_parent_id(integer, integer); Type: FUNCTION; Schema: public; Owner: -
648 626
--
649 627

  

Also available in: Unified diff