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

Paul Ramsey pramsey at cleverelephant.ca
Thu Oct 22 08:55:14 PDT 2015


Author: pramsey
Date: 2015-10-22 08:55:14 -0700 (Thu, 22 Oct 2015)
New Revision: 14302

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


Modified: branches/2.1/postgis/gserialized_typmod.c
===================================================================
--- branches/2.1/postgis/gserialized_typmod.c	2015-10-22 08:05:09 UTC (rev 14301)
+++ branches/2.1/postgis/gserialized_typmod.c	2015-10-22 15:55:14 UTC (rev 14302)
@@ -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