Revision 7706
Added by Aaron Marcuse-Kubitza over 11 years ago
functions.sql | ||
---|---|---|
443 | 443 |
|
444 | 444 |
|
445 | 445 |
-- |
446 |
-- Name: _range(double precision, double precision); Type: FUNCTION; Schema: functions; Owner: - |
|
447 |
-- |
|
448 |
|
|
449 |
CREATE FUNCTION _range("from" double precision DEFAULT NULL::double precision, "to" double precision DEFAULT NULL::double precision) RETURNS double precision |
|
450 |
LANGUAGE sql IMMUTABLE |
|
451 |
AS $_$ |
|
452 |
SELECT $2 - $1 |
|
453 |
$_$; |
|
454 |
|
|
455 |
|
|
456 |
-- |
|
446 | 457 |
-- Name: _split(text, text); Type: FUNCTION; Schema: functions; Owner: - |
447 | 458 |
-- |
448 | 459 |
|
Also available in: Unified diff
schemas/functions.sql: Added _range()