Ticket #954 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

[raster] ST_AsTiff syntax error

Reported by: strk Owned by: dustymugs
Priority: blocker Milestone: PostGIS 2.0.0
Component: raster Version: trunk
Keywords: Cc:

Description

rtpostgis.sql:1132: ERROR:  "$1" is declared CONSTANT
CONTEXT:  compilation of PL/pgSQL function "st_astiff" near line 2

PostgreSQL 8.4.3 on x86_64-pc-linux-gnu, compiled by GCC gcc-4.4.real (Ubuntu 4.4.3-4ubuntu5) 4.4.3, 64-bit

This is as of r7160

Change History

Changed 2 years ago by strk

  • priority changed from medium to blocker

Changed 2 years ago by dustymugs

  • owner changed from bkpark@… to dustymugs
  • status changed from new to assigned
  • component changed from postgis to postgis raster

Changed 2 years ago by dustymugs

Can you try r7170? The problem boiled down to modifying a function parameter in plpgsql. PostgreSQL 9.0 permits it while 8.4 does not.

Changed 2 years ago by strk

With r7170:

psql:/home/src/postgis/postgis/regress/../raster/test/regress/rtpostgis.sql:1229: ERROR:  syntax error at or near "RETURN"
LINE 3:  AS $$ RETURN st_astiff(st_band($1, $2), $3, NULL::text[], s...

Changed 2 years ago by strk

if it's an SQL function you would use SELECT instead of RETURN

Changed 2 years ago by dustymugs

Oops. Somehow that got by me. That and one more fixup in r7171.

Changed 2 years ago by strk

  • status changed from assigned to closed
  • resolution set to fixed

r7171 does fix the syntax error, thanks

Note: See TracTickets for help on using tickets.