Skip to content

Commit

Permalink
Merge pull request #188 from elemoine/remove-argument
Browse files Browse the repository at this point in the history
Remove "stat text default" argument
  • Loading branch information
elemoine committed Aug 21, 2017
2 parents d7bb3ed + 087e5d6 commit 0146bd7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pgsql/pointcloud.sql.in
Expand Up @@ -275,15 +275,15 @@ CREATE OR REPLACE FUNCTION _PC_PatchStat(p pcpatch, statno int, attr text)
RETURNS numeric AS 'MODULE_PATHNAME', 'pcpatch_get_stat'
LANGUAGE 'c' IMMUTABLE STRICT;

CREATE OR REPLACE FUNCTION PC_PatchMin(p pcpatch, attr text, stat text default 'min')
CREATE OR REPLACE FUNCTION PC_PatchMin(p pcpatch, attr text)
RETURNS numeric AS $$ SELECT _PC_PatchStat(p, 0, attr) $$
LANGUAGE 'sql' IMMUTABLE STRICT;

CREATE OR REPLACE FUNCTION PC_PatchMax(p pcpatch, attr text, stat text default 'max')
CREATE OR REPLACE FUNCTION PC_PatchMax(p pcpatch, attr text)
RETURNS numeric AS $$ SELECT _PC_PatchStat(p, 1, attr) $$
LANGUAGE 'sql' IMMUTABLE STRICT;

CREATE OR REPLACE FUNCTION PC_PatchAvg(p pcpatch, attr text, stat text default 'avg')
CREATE OR REPLACE FUNCTION PC_PatchAvg(p pcpatch, attr text)
RETURNS numeric AS $$ SELECT _PC_PatchStat(p, 2, attr) $$
LANGUAGE 'sql' IMMUTABLE STRICT;

Expand Down

0 comments on commit 0146bd7

Please sign in to comment.