Soft-uprading from 1.0 to any other 1.x would still fail unless the
old 1.0 library is around. See #2510
git-svn-id: http://svn.osgeo.org/postgis/trunk@12053
b70326c6-7e19-0410-871a-
916f4a2858ee
-- postgis_lib_version() and postgis_scripts_installed()
-- would both return actual PostGIS release number.
--
- SELECT into old_scripts postgis_lib_version();
+ BEGIN
+ SELECT into old_scripts postgis_lib_version();
+ EXCEPTION WHEN OTHERS THEN
+ RAISE DEBUG ''Got %'', SQLERRM;
+ SELECT into old_scripts postgis_scripts_installed();
+ END;
SELECT into new_scripts ''NEWVERSION'';
SELECT into old_maj substring(old_scripts from 1 for 2);
SELECT into new_maj substring(new_scripts from 1 for 2);