Opened 21 months ago

Closed 6 weeks ago

#5527 closed defect (fixed)

Confusing error from ST_FromFlatGeoBuf

Reported by: strk Owned by: Björn Harrtell
Priority: medium Milestone: PostGIS 3.5.3
Component: postgis Version: 3.4.x
Keywords: Cc:

Description

Running this:

select st_fromflatgeobuf(NULL::int,NULL::bytea);

You get this:

ERROR: function returning record called in context that cannot accept type record

The error is very confusing and needlessly so, as the message is hard-coded in PostGIS itself: https://git.osgeo.org/gitea/postgis/postgis/src/tag/3.4.0/postgis/lwgeom_in_flatgeobuf.c#L176

Change History (8)

comment:1 by pramsey, 21 months ago

Owner: changed from pramsey to Björn Harrtell

comment:2 by pramsey, 21 months ago

Owner: changed from Björn Harrtell to Björn Harrtell

comment:3 by robe, 18 months ago

Milestone: PostGIS 3.4.1PostGIS 3.5.0

comment:4 by robe, 8 months ago

Milestone: PostGIS 3.5.0PostGIS 3.4.4

comment:5 by robe, 5 months ago

Milestone: PostGIS 3.4.4PostGIS 3.5.1

comment:6 by robe, 5 months ago

Milestone: PostGIS 3.5.1PostGIS 3.5.2

comment:7 by robe, 4 months ago

Milestone: PostGIS 3.5.2PostGIS 3.5.3

Ticket retargeted after milestone closed

comment:8 by Paul Ramsey <pramsey@…>, 6 weeks ago

Resolution: fixed
Status: newclosed

In 4b98ff8/git:

Return more useful error on NULL/incorrect input, closes #5527

Note: See TracTickets for help on using tickets.