Project

General

Profile

« Previous | Next » 

Revision 6355

schemas/functions.sql: Added _or()

View differences:

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