[postgis-commits] svn - r3829 - branches/1.3/lwgeom

postgis-commits at postgis.refractions.net postgis-commits at postgis.refractions.net
Tue Mar 10 09:20:29 PDT 2009


Author: kneufeld
Date: 2009-03-10 09:20:29 -0700 (Tue, 10 Mar 2009)
New Revision: 3829

Modified:
   branches/1.3/lwgeom/lwpostgis.sql.in
Log:
Added fix to address an SRID of -1 in probe_geometry_columns

Modified: branches/1.3/lwgeom/lwpostgis.sql.in
===================================================================
--- branches/1.3/lwgeom/lwpostgis.sql.in	2009-03-10 16:18:52 UTC (rev 3828)
+++ branches/1.3/lwgeom/lwpostgis.sql.in	2009-03-10 16:20:29 UTC (rev 3829)
@@ -2965,18 +2965,18 @@
 		a.attname::varchar as f_geometry_column,
 		2 as coord_dimension,
 #if USE_VERSION >= 73
-		trim(both  ' =)' from 
+		trim(both  '' =)'' from 
 			replace(replace(split_part(
-				sridcheck.consrc, ' = ', 2), ')', ''), '(', ''))::integer AS srid,
+				sridcheck.consrc, '' = '', 2), '')'', ''''), ''('', ''''))::integer AS srid,
 		trim(both '' =)'''''' from substr(typecheck.consrc, 
 			strpos(typecheck.consrc, ''=''),
 			strpos(typecheck.consrc, ''::'')-
 			strpos(typecheck.consrc, ''='')
 			))::varchar as type
 #else
-		trim(both  ' =)' from 
+		trim(both  '' =)'' from 
 			replace(replace(split_part(
-				sridcheck.rcsrc, ' = ', 2), ')', ''), '(', ''))::integer AS srid,
+				sridcheck.rcsrc, '' = '', 2), '')'', ''''), ''('', ''''))::integer AS srid,
 		trim(both '' =)'''''' from substr(typecheck.rcsrc, 
 			strpos(typecheck.rcsrc, ''=''),
 			strpos(typecheck.rcsrc, ''::'')-



More information about the postgis-commits mailing list