[postgis-tickets] r16389 - use text_to_cstring instead of text2cstring

Bborie Park dustymugs at dspiral.net
Tue Feb 20 06:35:50 PST 2018


Author: dustymugs
Date: 2018-02-20 06:35:50 -0800 (Tue, 20 Feb 2018)
New Revision: 16389

Modified:
   trunk/raster/rt_pg/rtpg_wkb.c
Log:
use text_to_cstring instead of text2cstring

Modified: trunk/raster/rt_pg/rtpg_wkb.c
===================================================================
--- trunk/raster/rt_pg/rtpg_wkb.c	2018-02-20 14:00:57 UTC (rev 16388)
+++ trunk/raster/rt_pg/rtpg_wkb.c	2018-02-20 14:35:50 UTC (rev 16389)
@@ -33,7 +33,6 @@
 #include <utils/builtins.h> /*  for cstring_to_text */
 
 #include "rtpostgis.h"
-#include "lwgeom_pg.h"
 
 Datum RASTER_asWKB(PG_FUNCTION_ARGS);
 Datum RASTER_asHexWKB(PG_FUNCTION_ARGS);
@@ -184,7 +183,7 @@
 
 	POSTGIS_RT_DEBUG(3, "Starting");
 
-	hexwkb = text2cstring(hexwkb_text);
+	hexwkb = text_to_cstring(hexwkb_text);
 
 	raster = rt_raster_from_hexwkb(hexwkb, strlen(hexwkb));
 	PG_FREE_IF_COPY(hexwkb_text, 0);



More information about the postgis-tickets mailing list