From 399a8332193a4e132dcd6bca79747c289b1838ae Mon Sep 17 00:00:00 2001
From: Even Rouault <even.rouault@spatialys.com>
Date: Sun, 4 Apr 2021 19:26:42 +0200
Subject: Database: add a PROJ.VERSION metadata entry

---
 data/sql/commit.sql | 3 +++
 1 file changed, 3 insertions(+)

(limited to 'data/sql/commit.sql')

diff --git a/data/sql/commit.sql b/data/sql/commit.sql
index 7a4b74ad..80f5d7ba 100644
--- a/data/sql/commit.sql
+++ b/data/sql/commit.sql
@@ -191,6 +191,9 @@ FOR EACH ROW BEGIN
     SELECT RAISE(ABORT, 'missing au_ga_AUSGeoid98.tif')
         WHERE NOT EXISTS(SELECT 1 FROM grid_alternatives WHERE proj_grid_name = 'au_ga_AUSGeoid98.tif');
 
+    -- check PROJ.VERSION value
+    SELECT RAISE(ABORT, 'Value of PROJ.VERSION entry of metadata tables not substituted by actual value')
+        WHERE (SELECT 1 FROM metadata WHERE key = 'PROJ.VERSION' AND value LIKE '$%');
 
 END;
 INSERT INTO dummy DEFAULT VALUES;
-- 
cgit v1.2.3

