]> granicus.if.org Git - postgis/commitdiff
Expect nextval() to return a 64bit integer (#3180)
authorSandro Santilli <strk@keybit.net>
Fri, 26 Jun 2015 11:39:56 +0000 (11:39 +0000)
committerSandro Santilli <strk@keybit.net>
Fri, 26 Jun 2015 11:39:56 +0000 (11:39 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@13715 b70326c6-7e19-0410-871a-916f4a2858ee

topology/postgis_topology.c

index 15896bc0f69046f17879d22aa8c9f827d9fb0875..a82ca969dde2e9b6d6f521b83a7a27e7e80d5711 100644 (file)
@@ -723,7 +723,7 @@ cb_getNextEdgeId( const LWT_BE_TOPOLOGY* topo )
                cberror(topo->be_data, "nextval for edge_id returned null");
          return -1;
   }
-  edge_id = DatumGetInt32(dat);
+  edge_id = DatumGetInt64(dat); /* sequences return 64bit integers */
   return edge_id;
 }