Skip to content

Commit c2116ae

Browse files
committed
Update upgrade script (reset_sphere_output_precision function)
1 parent b7e12f3 commit c2116ae

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

pgs_point.sql.in

+5-1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ CREATE FUNCTION set_sphere_output_precision(INT4)
2626
AS 'MODULE_PATHNAME', 'set_sphere_output_precision'
2727
LANGUAGE 'c';
2828

29+
CREATE FUNCTION reset_sphere_output_precision()
30+
RETURNS CSTRING
31+
AS 'MODULE_PATHNAME', 'reset_sphere_output_precision'
32+
LANGUAGE 'c';
33+
2934
CREATE FUNCTION set_sphere_output(CSTRING)
3035
RETURNS CSTRING
3136
AS 'MODULE_PATHNAME', 'set_sphere_output'
@@ -175,4 +180,3 @@ CREATE OPERATOR <-> (
175180

176181
COMMENT ON OPERATOR <-> (spoint, spoint) IS
177182
'distance between spherical points';
178-

upgrade_scripts/pg_sphere--1.4.2--1.5.0.sql.in

+5
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,8 @@ EXCEPTION
1414
WHEN OTHERS THEN RAISE;
1515
END;
1616
$$;
17+
18+
CREATE FUNCTION reset_sphere_output_precision()
19+
RETURNS CSTRING
20+
AS 'MODULE_PATHNAME', 'reset_sphere_output_precision'
21+
LANGUAGE 'c';

0 commit comments

Comments
 (0)