[postgis-tickets] [SCM] PostGIS branch stable-2.5 updated. 2.5.7-5-ge5f7f23bf
git at osgeo.org
git at osgeo.org
Sun Aug 7 10:51:41 PDT 2022
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "PostGIS".
The branch, stable-2.5 has been updated
via e5f7f23bf9957be5fdef5a77df84b5468d606fc2 (commit)
from be4c7b69d697d0819aa68b8ca3af39a95936c1eb (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit e5f7f23bf9957be5fdef5a77df84b5468d606fc2
Author: Sandro Santilli <strk at kbt.io>
Date: Sun Aug 7 19:34:00 2022 +0200
Fix syntax of major upgrade function
This was broken in previous commit
be4c7b69d697d0819aa68b8ca3af39a95936c1eb
References #5202
Closes #5203
diff --git a/utils/postgis_proc_upgrade.pl b/utils/postgis_proc_upgrade.pl
index fd42dcf64..34eef1263 100755
--- a/utils/postgis_proc_upgrade.pl
+++ b/utils/postgis_proc_upgrade.pl
@@ -471,7 +471,7 @@ __END__
CREATE OR REPLACE FUNCTION postgis_major_version_check()
RETURNS text
-AS '
+AS $BODY$
DECLARE
old_scripts text;
new_scripts text;
@@ -546,8 +546,10 @@ BEGIN
IF old_maj != new_maj THEN
RAISE EXCEPTION 'Upgrade of MODULE from version % to version % requires a dump/reload. See PostGIS manual for instructions', old_scripts, new_scripts;
END IF;
-END
-'
+
+ RETURN 'Scripts versions checked for upgrade: ok';
+END;
+$BODY$
LANGUAGE 'plpgsql';
SELECT postgis_major_version_check();
-----------------------------------------------------------------------
Summary of changes:
utils/postgis_proc_upgrade.pl | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
hooks/post-receive
--
PostGIS
More information about the postgis-tickets
mailing list