sql.extension.rtree.rtree_trigger_update6 Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of geopackage-core Show documentation
Show all versions of geopackage-core Show documentation
Core functionality for GeoPackage implementations
The newest version!
CREATE TRIGGER "rtree___update6" AFTER UPDATE OF "" ON ""
WHEN OLD."" = NEW."" AND
(NEW."" NOTNULL AND NOT ST_IsEmpty(NEW."")) AND
(OLD."" NOTNULL AND NOT ST_IsEmpty(OLD.""))
BEGIN
UPDATE "rtree__" SET
minx = ST_MinX(NEW.""),
maxx = ST_MaxX(NEW.""),
miny = ST_MinY(NEW.""),
maxy = ST_MaxY(NEW."")
WHERE id = NEW."";
END;