File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ COMMENT ON TRIGGER tr_pipe_geom_insert ON qwat_od.pipe IS 'Trigger: updates auto
71
71
CREATE TRIGGER tr_pipe_geom_update
72
72
BEFORE UPDATE OF geometry ON qwat_od .pipe
73
73
FOR EACH ROW
74
- WHEN ( ST_Equals (ST_Force2d(NEW .geometry ), ST_Force2d(OLD .geometry )) IS FALSE )
74
+ WHEN ( ST_OrderingEquals (ST_Force2d(NEW .geometry ), ST_Force2d(OLD .geometry )) IS FALSE )
75
75
EXECUTE PROCEDURE qwat_od .ft_pipe_geom ();
76
76
COMMENT ON TRIGGER tr_pipe_geom_update ON qwat_od.pipe IS ' Trigger: updates auto fields of the pipe after geom update.' ;
77
77
Original file line number Diff line number Diff line change
1
+ DROP TRIGGER tr_pipe_geom_update ON qwat_od .pipe ;
2
+
3
+ CREATE TRIGGER tr_pipe_geom_update
4
+ BEFORE UPDATE OF geometry
5
+ ON qwat_od .pipe
6
+ FOR EACH ROW
7
+ WHEN (ST_OrderingEquals(st_force2d(new .geometry ), st_force2d(old .geometry )) IS FALSE)
8
+ EXECUTE FUNCTION qwat_od .ft_pipe_geom ();
9
+
10
+ COMMENT ON TRIGGER tr_pipe_geom_update ON qwat_od .pipe
11
+ IS ' Trigger: updates auto fields of the pipe after geom update.' ;
You can’t perform that action at this time.
0 commit comments