[postgis-tickets] r17342 - Do not be fooled by shell operators on upgrade

Sandro Santilli strk at kbt.io
Thu Mar 14 11:49:30 PDT 2019


Author: strk
Date: 2019-03-14 11:49:29 -0700 (Thu, 14 Mar 2019)
New Revision: 17342

Modified:
   trunk/utils/postgis_proc_upgrade.pl
Log:
Do not be fooled by shell operators on upgrade

Fixes #4345 which was introduced with r17297

Modified: trunk/utils/postgis_proc_upgrade.pl
===================================================================
--- trunk/utils/postgis_proc_upgrade.pl	2019-03-13 15:10:40 UTC (rev 17341)
+++ trunk/utils/postgis_proc_upgrade.pl	2019-03-14 18:49:29 UTC (rev 17342)
@@ -311,6 +311,7 @@
 		WHERE
 			o.oprleft = tl.oid AND
 			o.oprright = tr.oid AND
+			o.oprcode != 0 AND
 			o.oprname = '$opname' AND
 			tl.typname = '$opleft' AND
 			tr.typname = '$opright'



More information about the postgis-tickets mailing list