[postgis-commits] svn - r3423 - trunk/lwgeom

postgis-commits at postgis.refractions.net postgis-commits at postgis.refractions.net
Tue Dec 16 13:21:58 PST 2008


Author: kneufeld
Date: 2008-12-16 13:21:57 -0800 (Tue, 16 Dec 2008)
New Revision: 3423

Modified:
   trunk/lwgeom/lwpostgis.sql.in.c
Log:
fixed bug in probe_geometry_columns where an srid of -1 is not properly detected. (last time :))

Modified: trunk/lwgeom/lwpostgis.sql.in.c
===================================================================
--- trunk/lwgeom/lwpostgis.sql.in.c	2008-12-16 21:11:56 UTC (rev 3422)
+++ trunk/lwgeom/lwpostgis.sql.in.c	2008-12-16 21:21:57 UTC (rev 3423)
@@ -2830,7 +2830,7 @@
 		AND sridcheck.connamespace = n.oid
 		AND typecheck.connamespace = n.oid
 		AND sridcheck.conrelid = c.oid
-		AND sridcheck.consrc LIKE '(srid('||a.attname||') = %)'
+		AND sridcheck.consrc LIKE '(st_srid('||a.attname||') = %)'
 		AND typecheck.conrelid = c.oid
 		AND typecheck.consrc LIKE
 		'((geometrytype('||a.attname||') = ''%''::text) OR (% IS NULL))'



More information about the postgis-commits mailing list