]> granicus.if.org Git - postgis/commitdiff
Add test for postgis_full_version()
authorSandro Santilli <strk@kbt.io>
Tue, 20 Aug 2019 11:38:06 +0000 (11:38 +0000)
committerSandro Santilli <strk@kbt.io>
Tue, 20 Aug 2019 11:38:06 +0000 (11:38 +0000)
Closes #4485

NOTE: the test is only included in the core tests, might need to
      be replicated for sfcgal/topology/raster

git-svn-id: http://svn.osgeo.org/postgis/trunk@17736 b70326c6-7e19-0410-871a-916f4a2858ee

regress/core/regress.sql

index 145648a85dc4cbdcf817fd4c0f10b6d567a09852..76e472c764311bb5c2e3bb644574b1cc598f5eb8 100644 (file)
@@ -291,3 +291,8 @@ SELECT regexp_replace(probin, '(rt)?postgis(_[^-]*)?', '')
        FROM pg_proc WHERE proname = 'postgis_lib_version'
 )
 ORDER BY 2;
+
+
+SELECT 'UNEXPECTED', postgis_full_version()
+       WHERE postgis_full_version() LIKE '%UNPACKAGED%'
+          OR postgis_full_version() LIKE '%need upgrade%';