]> granicus.if.org Git - postgis/commitdiff
fixed bug in probe_geometry_columns where an srid of -1 is not properly detected...
authorKevin Neufeld <kneufeld.ca@gmail.com>
Tue, 16 Dec 2008 21:21:57 +0000 (21:21 +0000)
committerKevin Neufeld <kneufeld.ca@gmail.com>
Tue, 16 Dec 2008 21:21:57 +0000 (21:21 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@3423 b70326c6-7e19-0410-871a-916f4a2858ee

lwgeom/lwpostgis.sql.in.c

index febde5d5f750e8eae3e14f8e8a82132d28bf603a..0b052df644ed08bca502a537ed0d867f3ec42ce2 100644 (file)
@@ -2830,7 +2830,7 @@ BEGIN
                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))'