Project

General

Profile

« Previous | Next » 

Revision 2632

schemas/py_functions.sql: _dateRangeStart(): Fixed bug where needed to get the first element of the array returned by parse_date_range()

View differences:

schemas/py_functions.sql
28 28
    LANGUAGE plpgsql IMMUTABLE
29 29
    AS $$
30 30
BEGIN
31
    new.result := (SELECT py_functions.parse_date_range(new.value));
31
    new.result := (SELECT (py_functions.parse_date_range(new.value))[1]);
32 32
    RETURN new;
33 33
END;
34 34
$$;

Also available in: Unified diff