Opened 9 years ago

Closed 9 years ago

#3342 closed patch (fixed)

Bug in postgis_typmod_out that causes the hasm information to be ignored for typmod creation

Reported by: freget Owned by: pramsey
Priority: medium Milestone: PostGIS 2.2.1
Component: postgis Version: 2.2.x
Keywords: Cc:

Description

While reviewing the source code of the function postgis_typmod_out(PG_FUNCTION_ARGS) in gserialized_typmod.c, I came across the following, small bug:

Line 61 certainly should read

if ( ! ( srid || type || hasz || hasm ) )

instead of

if ( ! ( srid || type || hasz || hasz ) )

Sadly I am not able to provide a proper patch as I am missing the corrsponding toolset at my work computer.

Change History (3)

comment:1 by freget, 9 years ago

Summary: Bug in postgis_typmod_out that causes that the hasm information is igrnoed for typmod creationBug in postgis_typmod_out that causes the hasm information to be ignored for typmod creation

comment:2 by robe, 9 years ago

Component: liblwgeompostgis
Owner: changed from strk to pramsey

I don't think this has anything to do with liblwgeom as gserialzed is a postgis/postgreql specific thing so switching

comment:3 by pramsey, 9 years ago

Resolution: fixed
Status: newclosed

In 2.1 at r14302, in 2.2 at r14303, trunk at r14304, 2.0 at r14305.

Thanks for the sharp eyes!

Note: See TracTickets for help on using tickets.