Revision 4783
Added by Aaron Marcuse-Kubitza about 12 years ago
schemas/functions.sql | ||
---|---|---|
40 | 40 |
|
41 | 41 |
|
42 | 42 |
-- |
43 |
-- Name: _cm_to_m(double precision); Type: FUNCTION; Schema: functions; Owner: - |
|
44 |
-- |
|
45 |
|
|
46 |
CREATE FUNCTION _cm_to_m(value double precision) RETURNS double precision |
|
47 |
LANGUAGE sql IMMUTABLE STRICT |
|
48 |
AS $_$ |
|
49 |
SELECT $1/100. |
|
50 |
$_$; |
|
51 |
|
|
52 |
|
|
53 |
-- |
|
54 |
-- Name: _cm_to_m(text); Type: FUNCTION; Schema: functions; Owner: - |
|
55 |
-- |
|
56 |
|
|
57 |
CREATE FUNCTION _cm_to_m(value text) RETURNS double precision |
|
58 |
LANGUAGE sql IMMUTABLE STRICT |
|
59 |
AS $_$ |
|
60 |
SELECT functions._cm_to_m($1::double precision) |
|
61 |
$_$; |
|
62 |
|
|
63 |
|
|
64 |
-- |
|
43 | 65 |
-- Name: _eq(anyelement, anyelement); Type: FUNCTION; Schema: functions; Owner: - |
44 | 66 |
-- |
45 | 67 |
|
Also available in: Unified diff
schemas/functions.sql: Added _cm_to_m()