Opened 12 years ago

Closed 12 years ago

#1521 closed enhancement (worksforme)

[RASTER] ST_MapAlgebraExpr : do not allow writing to the database from the expression

Reported by: strk Owned by: pracine
Priority: medium Milestone: PostGIS 2.0.0
Component: raster Version: master
Keywords: Cc:

Description

SPI_execute should be called with read_only set to TRUE, to avoid accidentally writing to the DB from an expression.

Change History (2)

comment:1 by Bborie Park, 12 years ago

Type: defectenhancement

But what if a user wants to overtly write to the DB from the expression? I'd rather let the user have the responsibility of knowing their expression rather than adding a constraint.

comment:2 by strk, 12 years ago

Resolution: worksforme
Status: newclosed

I see your point, and I actually tend to agree. Let's keep it dangerous !

Note: See TracTickets for help on using tickets.