Revision 6355
Added by Aaron Marcuse-Kubitza about 12 years ago
schemas/functions.sql | ||
---|---|---|
341 | 341 |
|
342 | 342 |
|
343 | 343 |
-- |
344 |
-- Name: _or(boolean, boolean, boolean, boolean, boolean); Type: FUNCTION; Schema: functions; Owner: - |
|
345 |
-- |
|
346 |
|
|
347 |
CREATE FUNCTION _or("0" boolean DEFAULT NULL::boolean, "1" boolean DEFAULT NULL::boolean, "2" boolean DEFAULT NULL::boolean, "3" boolean DEFAULT NULL::boolean, "4" boolean DEFAULT NULL::boolean) RETURNS boolean |
|
348 |
LANGUAGE sql IMMUTABLE |
|
349 |
AS $_$ |
|
350 |
SELECT bool_or(value) |
|
351 |
FROM |
|
352 |
(VALUES |
|
353 |
($1) |
|
354 |
, ($2) |
|
355 |
, ($3) |
|
356 |
, ($4) |
|
357 |
, ($5) |
|
358 |
) |
|
359 |
AS v (value) |
|
360 |
$_$; |
|
361 |
|
|
362 |
|
|
363 |
-- |
|
344 | 364 |
-- Name: join_strs_transform(text, text, text); Type: FUNCTION; Schema: functions; Owner: - |
345 | 365 |
-- |
346 | 366 |
|
Also available in: Unified diff
schemas/functions.sql: Added _or()