[postgis-devel] DropGeometryTable should not raise exception
Sandro Santilli
strk at keybit.net
Thu Mar 17 12:35:04 PDT 2011
On Thu, Mar 17, 2011 at 06:45:10PM +0000, Mark Cave-Ayland wrote:
> On 17/03/11 18:35, Sandro Santilli wrote:
>
> >>I like to suggest a change to the
> >>DropGeometryTable function.
> >>
> >>I guess it should not raise an exception if the table has not geometric
> >>table. Instead it should drop it silently.
>
> I'd say a WARNING would be better, since if someone has tried to drop a
> geometry column which doesn't exist then something has already gone
> wrong and we should alert the user to this.
We're talking about DropGeometryTable here, not DropGeometryColumn.
DropGeometryTable cleanly drops whichever number of geometry columns,
so I think 0 is one of the possible numbers there.
For DropGeometryColumn I agree a WARNING might replace the ERROR.
--strk;
() Free GIS & Flash consultant/developer
/\ http://strk.keybit.net/services.html
More information about the postgis-devel
mailing list