Opened 11 years ago

Closed 11 years ago

#2552 closed defect (fixed)

[raster] ST_AsPNG and related fail on NULL raster

Reported by: dustymugs Owned by: dustymugs
Priority: medium Milestone: PostGIS 2.0.5
Component: raster Version: 2.0.x
Keywords: history Cc:

Description

SELECT ST_AsPNG(null::raster)

ERROR:  upper bound of FOR loop cannot be null
CONTEXT:  PL/pgSQL function st_aspng(raster,text[]) line 20 at FOR with integer loop variable

********** Error **********

ERROR: upper bound of FOR loop cannot be null
SQL state: 22004
Context: PL/pgSQL function st_aspng(raster,text[]) line 20 at FOR with integer loop variable

Correct response should be NULL

Change History (2)

comment:1 by dustymugs, 11 years ago

Status: newassigned

comment:2 by dustymugs, 11 years ago

Keywords: history added
Resolution: fixed
Status: assignedclosed

Fix in -trunk as of r12146. Fix in 2.1 as of r12147. Fix in 2.0 as of r12148.

Note: See TracTickets for help on using tickets.