]> granicus.if.org Git - postgis/commitdiff
#3342, ignoring M in typmod output
authorPaul Ramsey <pramsey@cleverelephant.ca>
Thu, 22 Oct 2015 15:57:51 +0000 (15:57 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Thu, 22 Oct 2015 15:57:51 +0000 (15:57 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@14304 b70326c6-7e19-0410-871a-916f4a2858ee

postgis/gserialized_typmod.c

index 407b015428fb7aae47ca223de090168e636c998d..c8800fd9d0a67a513543f470c48740169ea1d3df 100644 (file)
@@ -58,7 +58,7 @@ Datum postgis_typmod_out(PG_FUNCTION_ARGS)
        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);