Revision 11153
Added by Aaron Marcuse-Kubitza about 11 years ago
schemas/vegbien.my.sql | ||
---|---|---|
415 | 415 |
|
416 | 416 |
|
417 | 417 |
-- |
418 |
-- Name: locationevent__communities(int(11)); Type: FUNCTION; Schema: public; Owner: - |
|
419 |
-- |
|
420 |
|
|
421 |
|
|
422 |
|
|
423 |
|
|
424 |
-- |
|
425 |
-- Name: locationevent__communities__array(int(11)); Type: FUNCTION; Schema: public; Owner: - |
|
426 |
-- |
|
427 |
|
|
428 |
|
|
429 |
|
|
430 |
|
|
431 |
-- |
|
418 | 432 |
-- Name: locationevent__contributors(int(11)); Type: FUNCTION; Schema: public; Owner: - |
419 | 433 |
-- |
420 | 434 |
|
schemas/vegbien.sql | ||
---|---|---|
821 | 821 |
|
822 | 822 |
|
823 | 823 |
-- |
824 |
-- Name: locationevent__communities(integer); Type: FUNCTION; Schema: public; Owner: - |
|
825 |
-- |
|
826 |
|
|
827 |
CREATE FUNCTION locationevent__communities(locationevent_id integer) RETURNS SETOF text |
|
828 |
LANGUAGE sql STABLE |
|
829 |
AS $_$ |
|
830 |
SELECT commname.commname |
|
831 |
FROM commclass |
|
832 |
LEFT JOIN commdetermination USING (commclass_id) |
|
833 |
LEFT JOIN commconcept USING (commconcept_id) |
|
834 |
LEFT JOIN commname USING (commname_id) |
|
835 |
WHERE locationevent_id = $1 |
|
836 |
ORDER BY commname |
|
837 |
$_$; |
|
838 |
|
|
839 |
|
|
840 |
-- |
|
841 |
-- Name: locationevent__communities__array(integer); Type: FUNCTION; Schema: public; Owner: - |
|
842 |
-- |
|
843 |
|
|
844 |
CREATE FUNCTION locationevent__communities__array(locationevent_id integer) RETURNS text[] |
|
845 |
LANGUAGE sql STABLE |
|
846 |
AS $_$ |
|
847 |
SELECT array_agg(locationevent__communities) |
|
848 |
FROM locationevent__communities($1) |
|
849 |
$_$; |
|
850 |
|
|
851 |
|
|
852 |
-- |
|
824 | 853 |
-- Name: locationevent__contributors(integer); Type: FUNCTION; Schema: public; Owner: - |
825 | 854 |
-- |
826 | 855 |
|
Also available in: Unified diff
schemas/vegbien.sql: added locationevent__communities*()