]> granicus.if.org Git - pgm/commitdiff
fix incorrect function name
authorNathan Wagner <nw@hydaspes.if.org>
Sun, 3 Oct 2021 22:05:36 +0000 (17:05 -0500)
committerNathan Wagner <nw@hydaspes.if.org>
Sun, 3 Oct 2021 22:05:36 +0000 (17:05 -0500)
functions/colmaps.sql

index c6c31c25509c95e25566871a84eb85c72fdf608b..62926ca8ea10e56be814296e90bce8ff69405f33 100644 (file)
@@ -94,7 +94,7 @@ declare
 begin
        if op = 'insert' then
                if wrapgeom and geomwrapper is null then
-                       geomwrapper:='ST_FromEWKT';
+                       geomwrapper:='ST_GeomFromEWKT';
                end if;
                q := 'insert into ' || table_oid || ' '
                || cols(table_oid, keycol, p := true)
@@ -103,7 +103,7 @@ begin
                ;
        elsif op = 'update' then
                if wrapgeom and geomwrapper is null then
-                       geomwrapper:='ST_FromEWKT';
+                       geomwrapper:='ST_GeomFromEWKT';
                end if;
                q := 'update ' || table_oid
                || ' set ' || cols(table_oid, null, exclude:=keycol, p := true)