[postgis-tickets] r14304 - #3342, ignoring M in typmod output

Paul Ramsey pramsey at cleverelephant.ca
Thu Oct 22 08:57:51 PDT 2015


Author: pramsey
Date: 2015-10-22 08:57:51 -0700 (Thu, 22 Oct 2015)
New Revision: 14304

Modified:
   trunk/postgis/gserialized_typmod.c
Log:
#3342, ignoring M in typmod output



Modified: trunk/postgis/gserialized_typmod.c
===================================================================
--- trunk/postgis/gserialized_typmod.c	2015-10-22 15:56:57 UTC (rev 14303)
+++ trunk/postgis/gserialized_typmod.c	2015-10-22 15:57:51 UTC (rev 14304)
@@ -58,7 +58,7 @@
 	POSTGIS_DEBUGF(3, "Got typmod(srid = %d, type = %d, hasz = %d, hasm = %d)", srid, type, hasz, hasm);
 
 	/* No SRID or type or dimensionality? Then no typmod at all. Return empty string. */
-	if ( ! ( srid || type || hasz || hasz ) )
+	if ( ! ( srid || type || hasz || hasm ) )
 	{
 		*str = '\0';
 		PG_RETURN_CSTRING(str);



More information about the postgis-tickets mailing list