]> granicus.if.org Git - postgis/commitdiff
more minor corrections
authorRegina Obe <lr@pcorp.us>
Thu, 8 Sep 2011 14:36:08 +0000 (14:36 +0000)
committerRegina Obe <lr@pcorp.us>
Thu, 8 Sep 2011 14:36:08 +0000 (14:36 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@7824 b70326c6-7e19-0410-871a-916f4a2858ee

extras/tiger_geocoder/tiger_2010/topology/tiger_topology_loader.sql

index 84254c8e9561a0759b7e77432bd24fe49da90f84..846d620e42f4b7131fd879629f543db0943e7a87 100644 (file)
@@ -57,8 +57,8 @@ BEGIN
                         , t.tnidf As start_node, t.tnidt As end_node, t.tfidl As left_face
                         , t.tfidr As right_face, tl.tlid AS next_left_edge,  tr.tlid As next_right_edge
                                                FROM 
-                                                       te AS t LEFT JOIN te As tl ON (t.tnidf = tl.tnidt AND t.tfidl IN(tl.tfidl,tl.tfidr) ) 
-                                                        LEFT JOIN te As tr ON (t.tnidt = tr.tnidf AND t.tfidr IN(tr.tfidl,tr.tfidr))                           
+                                                       te AS t LEFT JOIN te As tl ON (t.tnidf = tl.tnidt AND t.tfidl = tl.tfidl)
+                                                        LEFT JOIN te As tr ON (t.tnidt = tr.tnidf AND t.tfidr = tr.tfidr)                              
                                                ';
        EXECUTE var_sql USING var_statefp, var_rgeom;
        GET DIAGNOSTICS var_rcnt = ROW_COUNT;