Commit 829c8166 authored by Darafei Praliaskouski's avatar Darafei Praliaskouski

check_gdal: Don't assume failure when the datapath is invalid

Patch by Raúl Marín Rodríguez

Closes https://github.com/postgis/postgis/pull/206
Closes #4013


git-svn-id: http://svn.osgeo.org/postgis/trunk@16378 b70326c6-7e19-0410-871a-916f4a2858ee
parent 8a78bf03
Pipeline #17469608 passed with stage
in 15 minutes and 27 seconds
...@@ -5,13 +5,8 @@ SELECT ...@@ -5,13 +5,8 @@ SELECT
THEN false THEN false
ELSE NULL ELSE NULL
END; END;
SET postgis.gdal_datapath = ''; SET postgis.gdal_datapath = 'invalid_path';
SELECT SHOW postgis.gdal_datapath;
CASE
WHEN strpos(postgis_gdal_version(), 'GDAL_DATA') <> 0
THEN NULL
ELSE TRUE
END;
SET postgis.gdal_datapath = default; SET postgis.gdal_datapath = default;
SELECT SELECT
CASE CASE
......
invalid_path
t t
DISABLE_ALL DISABLE_ALL
ENABLE_ALL ENABLE_ALL
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment